hotspot/src/share/vm/opto/loopPredicate.cpp
changeset 10263 fa58671dde31
parent 10258 10c77b8c8d3e
child 12958 009b6c9586d8
equal deleted inserted replaced
10262:c5f62d314bee 10263:fa58671dde31
   716     // do nothing for infinite loops
   716     // do nothing for infinite loops
   717     return false;
   717     return false;
   718   }
   718   }
   719 
   719 
   720   CountedLoopNode *cl = NULL;
   720   CountedLoopNode *cl = NULL;
   721   if (head->is_CountedLoop()) {
   721   if (head->is_valid_counted_loop()) {
   722     cl = head->as_CountedLoop();
   722     cl = head->as_CountedLoop();
   723     // do nothing for iteration-splitted loops
   723     // do nothing for iteration-splitted loops
   724     if (!cl->is_normal_loop()) return false;
   724     if (!cl->is_normal_loop()) return false;
   725     // Avoid RCE if Counted loop's test is '!='.
   725     // Avoid RCE if Counted loop's test is '!='.
   726     BoolTest::mask bt = cl->loopexit()->test_trip();
   726     BoolTest::mask bt = cl->loopexit()->test_trip();