[mono/mono] cff88593: [llvm] Mark the load generated by OP_AOTCONST as invariant.

"Zoltan Varga ([email protected])" <[email protected]> Mon, 11 Nov 2013 01:02:29 +0000
Newsgroups gmane.comp.gnome.mono.patches
Message-ID <0000014244ae65ad-a3d3057e-27ac-4433-b61e-25785683c84d-000000@email.amazonses.com>
   Branch: refs/heads/master
     Home: https://github.com/mono/mono
  Compare: https://github.com/mono/mono/compare/3e14c8db3d43...cff88593e039

   Commit: cff88593e039d8d196822272e463430d4ce339d7
   Author: Zoltan Varga <[email protected]> (vargaz)
     Date: 2013-11-11 01:01:18 GMT
      URL: https://github.com/mono/mono/commit/cff88593e039d8d196822272e463430d4ce339d7

[llvm] Mark the load generated by OP_AOTCONST as invariant.

Changed paths:
  M mono/mini/mini-llvm.c

Modified: mono/mini/mini-llvm.c
===================================================================
@@ -3110,6 +3110,7 @@
 			got_entry_addr = LLVMBuildGEP (builder, ctx->lmodule->got_var, indexes, 2, "");
 
 			values [ins->dreg] = LLVMBuildLoad (builder, got_entry_addr, dname);
+			set_invariant_load_flag (values [ins->dreg]);
 			break;
 		}
 		case OP_NOT_REACHED:


_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches