diff src/share/vm/opto/phaseX.cpp @ 17938:1555c0843770

Merge
author drchase
date Thu, 22 May 2014 13:05:24 -0700
parents 78bbf4d43a14 968a17f18337
children 52b4284cb496 5b8e0f84f00f
line wrap: on
line diff
--- a/src/share/vm/opto/phaseX.cpp	Thu May 22 15:52:41 2014 -0400
+++ b/src/share/vm/opto/phaseX.cpp	Thu May 22 13:05:24 2014 -0700
@@ -1379,6 +1379,15 @@
           _worklist.push(u);
       }
     }
+    // If changed AddI/SubI inputs, check CmpU for range check optimization.
+    if (use_op == Op_AddI || use_op == Op_SubI) {
+      for (DUIterator_Fast i2max, i2 = use->fast_outs(i2max); i2 < i2max; i2++) {
+        Node* u = use->fast_out(i2);
+        if (u->is_Cmp() && (u->Opcode() == Op_CmpU)) {
+          _worklist.push(u);
+        }
+      }
+    }
     // If changed AddP inputs, check Stores for loop invariant
     if( use_op == Op_AddP ) {
       for (DUIterator_Fast i2max, i2 = use->fast_outs(i2max); i2 < i2max; i2++) {