]> git.ipfire.org Git - thirdparty/LuaJIT.git/commitdiff
Add missing PHI barrier to strength reduction of widening.
authorMike Pall <mike>
Sun, 12 Dec 2010 20:03:20 +0000 (21:03 +0100)
committerMike Pall <mike>
Sun, 12 Dec 2010 20:05:34 +0000 (21:05 +0100)
src/lj_opt_fold.c

index 1b35f2de7f73c1b807f89b6d062bf22363fa4944..18471abf4337b17eeed3e647bc40eea24a6872f0 100644 (file)
@@ -778,6 +778,7 @@ LJFOLDF(simplify_zext64)
 {
 #if LJ_TARGET_X64
   /* Eliminate widening. All 32 bit ops implicitly zero-extend the result. */
+  PHIBARRIER(fleft);
   return LEFTFOLD;
 #else
   UNUSED(J);
@@ -790,6 +791,7 @@ LJFOLDF(simplify_sext64)
 {
   IRRef ref = fins->op1;
   int64_t ofs = 0;
+  PHIBARRIER(fleft);
   if (fleft->o == IR_ADD && irref_isk(fleft->op2)) {
     ofs = (int64_t)IR(fleft->op2)->i;
     ref = fleft->op1;