equal
deleted
inserted
replaced
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(); |