]> git.ipfire.org Git - thirdparty/LuaJIT.git/commitdiff
FFI: Prevent DSE across ffi.string().
authorMike Pall <mike>
Wed, 18 Feb 2015 15:00:15 +0000 (16:00 +0100)
committerMike Pall <mike>
Wed, 18 Feb 2015 15:00:15 +0000 (16:00 +0100)
src/lj_opt_mem.c

index f4e3cd3a81548b69c03bf8d318e43f1210f85878..a4d96fc0f9cb2fc6f4c6e9d996019550370fcc83 100644 (file)
@@ -793,6 +793,7 @@ TRef LJ_FASTCALL lj_opt_dse_xstore(jit_State *J)
   IRRef ref = *refp;
   if (J->chain[IR_CALLXS] > lim) lim = J->chain[IR_CALLXS];
   if (J->chain[IR_XBAR] > lim) lim = J->chain[IR_XBAR];
+  if (J->chain[IR_XSNEW] > lim) lim = J->chain[IR_XSNEW];
   while (ref > lim) {  /* Search for redundant or conflicting stores. */
     IRIns *store = IR(ref);
     switch (aa_xref(J, xr, fins, store)) {