@@ -1799,11 +1803,11 @@
old_phi->add_req(p);
// Check for the special case of making the old phi useless and
// disappear it. In JavaGrande I have a case where this useless
// Phi is the loop limit and prevents recognizing a CountedLoop
// which in turn prevents removing an empty loop.
- Node *id_old_phi = old_phi->Identity( &igvn );+ Node *id_old_phi = igvn.apply_identity(old_phi);
if( id_old_phi != old_phi ) { // Found a simple identity?
// Note that I cannot call 'replace_node' here, because
// that will yank the edge from old_phi to the Region and
// I'm mid-iteration over the Region's uses.
for (DUIterator_Last imin, i = old_phi->last_outs(imin); i >= imin; ) {