7045506: assert(!can_reshape || !new_phi) failed: for igvn new phi should be hooked
authorkvn
Sat, 21 May 2011 13:59:55 -0700
changeset 9956 a3f4ad8fee9e
parent 9955 9dc9ba9c9399
child 9957 4ca3f136aa23
7045506: assert(!can_reshape || !new_phi) failed: for igvn new phi should be hooked Summary: Replace the assert in PhiNode::Ideal with check to avoid transformation of new phi. Reviewed-by: never
hotspot/src/share/vm/opto/cfgnode.cpp
--- a/hotspot/src/share/vm/opto/cfgnode.cpp	Sat May 21 11:44:31 2011 -0700
+++ b/hotspot/src/share/vm/opto/cfgnode.cpp	Sat May 21 13:59:55 2011 -0700
@@ -1556,7 +1556,9 @@
 
   Node *top = phase->C->top();
   bool new_phi = (outcnt() == 0); // transforming new Phi
-  assert(!can_reshape || !new_phi, "for igvn new phi should be hooked");
+  // No change for igvn if new phi is not hooked
+  if (new_phi && can_reshape)
+    return NULL;
 
   // The are 2 situations when only one valid phi's input is left
   // (in addition to Region input).