Merging 7888.
[cacao.git] / src / vm / jit / jit.c
index 40ff40fe7ad74f6a6ed18e58466c73fe23fc04e0..c1b348950f12607f9b69c490f443b46a0bc18c4c 100644 (file)
@@ -764,12 +764,12 @@ static u1 *jit_compile_intern(jitdata *jd)
 # endif /* defined(ENABLE_LSRA) && !defined(ENABLE_SSA) */
 #if defined(ENABLE_SSA)
                /* allocate registers */
-               if ((opt_lsra) && (jd->exceptiontablelength == 0)) {
+               if ((opt_lsra) /*&& strcmp(jd->m->name->text, "findClass") != 0*/) {
                        jd->ls = DNEW(lsradata);
                        jd->ls = NULL;
                        ssa(jd);
                        /*lsra(jd);*/ regalloc(jd);
-
+                       eliminate_subbasicblocks(jd);
                        STATISTICS(count_methods_allocated_by_lsra++);
 
                } else