diff -r c5f62d314bee -r fa58671dde31 hotspot/src/share/vm/opto/loopPredicate.cpp --- a/hotspot/src/share/vm/opto/loopPredicate.cpp Tue Aug 02 18:36:40 2011 +0200 +++ b/hotspot/src/share/vm/opto/loopPredicate.cpp Wed Aug 10 14:06:57 2011 -0700 @@ -718,7 +718,7 @@ } CountedLoopNode *cl = NULL; - if (head->is_CountedLoop()) { + if (head->is_valid_counted_loop()) { cl = head->as_CountedLoop(); // do nothing for iteration-splitted loops if (!cl->is_normal_loop()) return false;