hotspot/src/share/vm/opto/split_if.cpp
changeset 33589 7cbd1b2c139b
parent 24923 9631f7d691dc
child 34185 ee71c590a456
equal deleted inserted replaced
33580:c2d95df2c54e 33589:7cbd1b2c139b
   449   // Split the IF.
   449   // Split the IF.
   450   Node *new_iff = split_thru_region( iff, region );
   450   Node *new_iff = split_thru_region( iff, region );
   451 
   451 
   452   // Replace both uses of 'new_iff' with Regions merging True/False
   452   // Replace both uses of 'new_iff' with Regions merging True/False
   453   // paths.  This makes 'new_iff' go dead.
   453   // paths.  This makes 'new_iff' go dead.
   454   Node *old_false, *old_true;
   454   Node *old_false = NULL, *old_true = NULL;
   455   Node *new_false, *new_true;
   455   Node *new_false = NULL, *new_true = NULL;
   456   for (DUIterator_Last j2min, j2 = iff->last_outs(j2min); j2 >= j2min; --j2) {
   456   for (DUIterator_Last j2min, j2 = iff->last_outs(j2min); j2 >= j2min; --j2) {
   457     Node *ifp = iff->last_out(j2);
   457     Node *ifp = iff->last_out(j2);
   458     assert( ifp->Opcode() == Op_IfFalse || ifp->Opcode() == Op_IfTrue, "" );
   458     assert( ifp->Opcode() == Op_IfFalse || ifp->Opcode() == Op_IfTrue, "" );
   459     ifp->set_req(0, new_iff);
   459     ifp->set_req(0, new_iff);
   460     Node *ifpx = split_thru_region( ifp, region );
   460     Node *ifpx = split_thru_region( ifp, region );