src/share/vm/opto/loopPredicate.cpp

changeset 3048
6987871cfb9b
parent 3043
c96c3eb1efae
child 3847
5e990493719e
equal deleted inserted replaced
3047:f1c12354c3f7 3048:6987871cfb9b
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();

mercurial