changeset 10263 | fa58671dde31 |
parent 10255 | bab46e6f7661 |
child 12594 | 6e6bb5986456 |
--- a/hotspot/src/share/vm/opto/superword.cpp Tue Aug 02 18:36:40 2011 +0200 +++ b/hotspot/src/share/vm/opto/superword.cpp Wed Aug 10 14:06:57 2011 -0700 @@ -70,6 +70,8 @@ assert(lpt->_head->is_CountedLoop(), "must be"); CountedLoopNode *cl = lpt->_head->as_CountedLoop(); + if (!cl->is_valid_counted_loop()) return; // skip malformed counted loop + if (!cl->is_main_loop() ) return; // skip normal, pre, and post loops // Check for no control flow in body (other than exit)