hotspot/src/share/vm/opto/reg_split.cpp
changeset 19334 3aa9ca404965
parent 19330 49d6711171e6
child 19717 7819ffdaf0ff
--- a/hotspot/src/share/vm/opto/reg_split.cpp	Fri Aug 16 13:39:26 2013 -0400
+++ b/hotspot/src/share/vm/opto/reg_split.cpp	Fri Aug 16 14:11:40 2013 -0700
@@ -397,10 +397,15 @@
 #endif
   // See if the cloned def kills any flags, and copy those kills as well
   uint i = insidx+1;
-  if( clone_projs( b, i, def, spill, maxlrg) ) {
+  int found_projs = clone_projs( b, i, def, spill, maxlrg);
+  if (found_projs > 0) {
     // Adjust the point where we go hi-pressure
-    if( i <= b->_ihrp_index ) b->_ihrp_index++;
-    if( i <= b->_fhrp_index ) b->_fhrp_index++;
+    if (i <= b->_ihrp_index) {
+      b->_ihrp_index += found_projs;
+    }
+    if (i <= b->_fhrp_index) {
+      b->_fhrp_index += found_projs;
+    }
   }
 
   return spill;