OSDN Git Service

Bug fixes for ld/st elimination.
[android-x86/dalvik.git] / vm / compiler / codegen / arm / CodegenDriver.c
index 599df90..e94fc11 100644 (file)
@@ -4575,6 +4575,8 @@ void dvmCompilerMIR2LIR(CompilationUnit *cUnit)
              */
             dvmCompilerApplyLocalOptimizations(cUnit, (LIR *) headLIR,
                                                cUnit->lastLIRInsn);
+            /* Reset headLIR which is also the optimization boundary */
+            headLIR = NULL;
         }
 
 gen_fallthrough: