1.1 --- a/src/share/vm/opto/superword.cpp Tue Aug 02 18:36:40 2011 +0200 1.2 +++ b/src/share/vm/opto/superword.cpp Wed Aug 10 14:06:57 2011 -0700 1.3 @@ -70,6 +70,8 @@ 1.4 assert(lpt->_head->is_CountedLoop(), "must be"); 1.5 CountedLoopNode *cl = lpt->_head->as_CountedLoop(); 1.6 1.7 + if (!cl->is_valid_counted_loop()) return; // skip malformed counted loop 1.8 + 1.9 if (!cl->is_main_loop() ) return; // skip normal, pre, and post loops 1.10 1.11 // Check for no control flow in body (other than exit)