]> git.ipfire.org Git - thirdparty/LuaJIT.git/commitdiff
ARM: Invoke SPLIT pass for leftover IR_TOBIT.
authorMike Pall <mike>
Mon, 16 Jul 2012 21:39:49 +0000 (23:39 +0200)
committerMike Pall <mike>
Mon, 16 Jul 2012 21:39:49 +0000 (23:39 +0200)
Can only happen with -O-fold for TOBIT(constant).

src/lj_opt_split.c

index b0da7f3a6e54433822ca4027b3080e57306518a4..186dc8c02d1ea3d73d74cf83fdec6abba4f36a51 100644 (file)
@@ -683,6 +683,8 @@ static int split_needsplit(jit_State *J)
     for (ref = J->chain[IR_SLOAD]; ref; ref = IR(ref)->prev)
       if ((IR(ref)->op2 & IRSLOAD_CONVERT))
        return 1;
+    if (J->chain[IR_TOBIT])
+      return 1;
   }
   for (ref = J->chain[IR_CONV]; ref; ref = IR(ref)->prev) {
     IRType st = (IR(ref)->op2 & IRCONV_SRCMASK);