Generate code for loops formed with the new builder
Adapt the existing counted loop analysis and range/null check
elimination code to work with the new loop building heuristics.
Cleaned up the old ad-hoc loop builder.
Suspend polling is enabled by default for loops. The backward chaining
cell will be used in self-verification and profiling mode.
If the loop includes accesses to resolved fields/classes, abort code
generation for now and revert to the basic acyclic trace. Added
tests/090-loop-formation to make sure the JIT won't choke on such
instructions.
Change-Id: Idbc57df0a745be3b692f68c1acb6d4861c537f75
diff --git a/vm/compiler/codegen/arm/ArchUtility.c b/vm/compiler/codegen/arm/ArchUtility.c
index fb28e26..edcbf86 100644
--- a/vm/compiler/codegen/arm/ArchUtility.c
+++ b/vm/compiler/codegen/arm/ArchUtility.c
@@ -316,20 +316,25 @@
DUMP_SSA_REP(LOGD("-------- %s\n", (char *) dest));
break;
case kArmPseudoChainingCellBackwardBranch:
+ LOGD("L%p:\n", lir);
LOGD("-------- chaining cell (backward branch): 0x%04x\n", dest);
break;
case kArmPseudoChainingCellNormal:
+ LOGD("L%p:\n", lir);
LOGD("-------- chaining cell (normal): 0x%04x\n", dest);
break;
case kArmPseudoChainingCellHot:
+ LOGD("L%p:\n", lir);
LOGD("-------- chaining cell (hot): 0x%04x\n", dest);
break;
case kArmPseudoChainingCellInvokePredicted:
+ LOGD("L%p:\n", lir);
LOGD("-------- chaining cell (predicted): %s%s\n",
dest ? ((Method *) dest)->clazz->descriptor : "",
dest ? ((Method *) dest)->name : "N/A");
break;
case kArmPseudoChainingCellInvokeSingleton:
+ LOGD("L%p:\n", lir);
LOGD("-------- chaining cell (invoke singleton): %s%s/%p\n",
((Method *)dest)->clazz->descriptor,
((Method *)dest)->name,