diff src/share/vm/opto/lcm.cpp @ 12816:2720ab7a0d70

Merge
author ccheung
date Fri, 04 Oct 2013 21:00:43 -0700
parents c9ccd7b85f20
children de6a9e811145 2b8e28fdf503
line wrap: on
line diff
--- a/src/share/vm/opto/lcm.cpp	Sat Oct 05 03:14:53 2013 +0200
+++ b/src/share/vm/opto/lcm.cpp	Fri Oct 04 21:00:43 2013 -0700
@@ -472,6 +472,13 @@
           break;
         }
 
+        // For nodes that produce a FlagsProj, make the node adjacent to the
+        // use of the FlagsProj
+        if (use->is_FlagsProj() && get_block_for_node(use) == block) {
+          found_machif = true;
+          break;
+        }
+
         // More than this instruction pending for successor to be ready,
         // don't choose this if other opportunities are ready
         if (ready_cnt.at(use->_idx) > 1)