1.1 --- a/src/share/vm/opto/lcm.cpp Thu Sep 26 12:07:53 2013 -0700 1.2 +++ b/src/share/vm/opto/lcm.cpp Fri Sep 27 08:39:19 2013 +0200 1.3 @@ -472,6 +472,13 @@ 1.4 break; 1.5 } 1.6 1.7 + // For nodes that produce a FlagsProj, make the node adjacent to the 1.8 + // use of the FlagsProj 1.9 + if (use->is_FlagsProj() && get_block_for_node(use) == block) { 1.10 + found_machif = true; 1.11 + break; 1.12 + } 1.13 + 1.14 // More than this instruction pending for successor to be ready, 1.15 // don't choose this if other opportunities are ready 1.16 if (ready_cnt.at(use->_idx) > 1)