src/hotspot/share/c1/c1_Optimizer.cpp
changeset 59032 ad05ed6f2a77
parent 58273 08a5148e7c4e
--- a/src/hotspot/share/c1/c1_Optimizer.cpp	Fri Nov 08 11:15:16 2019 +0000
+++ b/src/hotspot/share/c1/c1_Optimizer.cpp	Tue Nov 12 16:13:16 2019 +0100
@@ -366,6 +366,8 @@
           assert(sux_value == end_state->stack_at(index), "stack not equal");
         }
         for_each_local_value(sux_state, index, sux_value) {
+          Phi* sux_phi = sux_value->as_Phi();
+          if (sux_phi != NULL && sux_phi->is_illegal()) continue;
           assert(sux_value == end_state->local_at(index), "locals not equal");
         }
         assert(sux_state->caller_state() == end_state->caller_state(), "caller not equal");