diff src/share/vm/opto/compile.cpp @ 13043:e428d5e768e3

8027622: java.time.Instant.create failing since hs25-b56 Reviewed-by: kvn, iveresov
author rbackman
date Mon, 04 Nov 2013 10:44:46 +0100
parents b2ee5dc63353
children 613e6a6fc328
line wrap: on
line diff
--- a/src/share/vm/opto/compile.cpp	Mon Nov 04 21:59:54 2013 +0100
+++ b/src/share/vm/opto/compile.cpp	Mon Nov 04 10:44:46 2013 +0100
@@ -3018,12 +3018,17 @@
           // Phi nodes shouldn't be moved. They would only match below if they
           // had the same control as the MathExactNode. The only time that
           // would happen is if the Phi is also an input to the MathExact
-          if (!out->is_Phi()) {
-            if (out->in(0) == NULL) {
-              out->set_req(0, non_throwing);
-            } else if (out->in(0) == ctrl) {
-              out->set_req(0, non_throwing);
-            }
+          //
+          // Cmp nodes shouldn't have control set at all.
+          if (out->is_Phi() ||
+              out->is_Cmp()) {
+            continue;
+          }
+
+          if (out->in(0) == NULL) {
+            out->set_req(0, non_throwing);
+          } else if (out->in(0) == ctrl) {
+            out->set_req(0, non_throwing);
           }
         }
       }