< prev index next >

src/hotspot/share/opto/loopTransform.cpp

Print this page

        

@@ -1198,11 +1198,11 @@
   if (UseLoopPredicate) {
     Node* entry = pre_head->in(LoopNode::EntryControl);
     Node* predicate = NULL;
     predicate = find_predicate_insertion_point(entry, Deoptimization::Reason_loop_limit_check);
     if (predicate != NULL) {
-      entry = entry->in(0)->in(0);
+      entry = skip_loop_predicates(entry);
     }
     Node* profile_predicate = NULL;
     if (UseProfiledLoopPredicate) {
       profile_predicate = find_predicate_insertion_point(entry, Deoptimization::Reason_profile_predicate);
       if (profile_predicate != NULL) {
< prev index next >