split_if.cpp revision 1472
0N/A/*
196N/A * Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
0N/A *
0N/A * This code is free software; you can redistribute it and/or modify it
0N/A * under the terms of the GNU General Public License version 2 only, as
0N/A * published by the Free Software Foundation.
0N/A *
0N/A * This code is distributed in the hope that it will be useful, but WITHOUT
0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
0N/A * version 2 for more details (a copy is included in the LICENSE file that
0N/A * accompanied this code).
0N/A *
0N/A * You should have received a copy of the GNU General Public License version
0N/A * 2 along with this work; if not, write to the Free Software Foundation,
0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
0N/A *
0N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
0N/A * or visit www.oracle.com if you need additional information or have any
0N/A * questions.
0N/A *
0N/A */
0N/A
0N/A#include "incls/_precompiled.incl"
0N/A#include "incls/_split_if.cpp.incl"
0N/A
0N/A
0N/A//------------------------------split_thru_region------------------------------
0N/A// Split Node 'n' through merge point.
0N/ANode *PhaseIdealLoop::split_thru_region( Node *n, Node *region ) {
0N/A uint wins = 0;
0N/A assert( n->is_CFG(), "" );
0N/A assert( region->is_Region(), "" );
45N/A Node *r = new (C, region->req()) RegionNode( region->req() );
0N/A IdealLoopTree *loop = get_loop( n );
0N/A for( uint i = 1; i < region->req(); i++ ) {
0N/A Node *x = n->clone();
0N/A Node *in0 = n->in(0);
0N/A if( in0->in(0) == region ) x->set_req( 0, in0->in(i) );
0N/A for( uint j = 1; j < n->req(); j++ ) {
0N/A Node *in = n->in(j);
0N/A if( get_ctrl(in) == region )
0N/A x->set_req( j, in->in(i) );
0N/A }
0N/A _igvn.register_new_node_with_optimizer(x);
0N/A set_loop(x, loop);
0N/A set_idom(x, x->in(0), dom_depth(x->in(0))+1);
0N/A r->init_req(i, x);
0N/A }
0N/A
0N/A // Record region
0N/A r->set_req(0,region); // Not a TRUE RegionNode
0N/A _igvn.register_new_node_with_optimizer(r);
0N/A set_loop(r, loop);
0N/A if( !loop->_child )
0N/A loop->_body.push(r);
0N/A return r;
0N/A}
0N/A
0N/A//------------------------------split_up---------------------------------------
0N/A// Split block-local op up through the phis to empty the current block
0N/Abool PhaseIdealLoop::split_up( Node *n, Node *blk1, Node *blk2 ) {
0N/A if( n->is_CFG() ) {
0N/A assert( n->in(0) != blk1, "Lousy candidate for split-if" );
0N/A return false;
0N/A }
0N/A if( get_ctrl(n) != blk1 && get_ctrl(n) != blk2 )
0N/A return false; // Not block local
0N/A if( n->is_Phi() ) return false; // Local PHIs are expected
0N/A
0N/A // Recursively split-up inputs
0N/A for (uint i = 1; i < n->req(); i++) {
0N/A if( split_up( n->in(i), blk1, blk2 ) ) {
0N/A // Got split recursively and self went dead?
0N/A if (n->outcnt() == 0)
0N/A _igvn.remove_dead_node(n);
0N/A return true;
0N/A }
0N/A }
0N/A
0N/A // Check for needing to clone-up a compare. Can't do that, it forces
0N/A // another (nested) split-if transform. Instead, clone it "down".
0N/A if( n->is_Cmp() ) {
0N/A assert(get_ctrl(n) == blk2 || get_ctrl(n) == blk1, "must be in block with IF");
0N/A // Check for simple Cmp/Bool/CMove which we can clone-up. Cmp/Bool/CMove
0N/A // sequence can have no other users and it must all reside in the split-if
0N/A // block. Non-simple Cmp/Bool/CMove sequences are 'cloned-down' below -
0N/A // private, per-use versions of the Cmp and Bool are made. These sink to
0N/A // the CMove block. If the CMove is in the split-if block, then in the
0N/A // next iteration this will become a simple Cmp/Bool/CMove set to clone-up.
0N/A Node *bol, *cmov;
0N/A if( !(n->outcnt() == 1 && n->unique_out()->is_Bool() &&
0N/A (bol = n->unique_out()->as_Bool()) &&
0N/A (get_ctrl(bol) == blk1 ||
0N/A get_ctrl(bol) == blk2) &&
0N/A bol->outcnt() == 1 &&
0N/A bol->unique_out()->is_CMove() &&
0N/A (cmov = bol->unique_out()->as_CMove()) &&
0N/A (get_ctrl(cmov) == blk1 ||
0N/A get_ctrl(cmov) == blk2) ) ) {
0N/A
0N/A // Must clone down
0N/A#ifndef PRODUCT
0N/A if( PrintOpto && VerifyLoopOptimizations ) {
0N/A tty->print("Cloning down: ");
0N/A n->dump();
0N/A }
0N/A#endif
0N/A // Clone down any block-local BoolNode uses of this CmpNode
0N/A for (DUIterator i = n->outs(); n->has_out(i); i++) {
0N/A Node* bol = n->out(i);
0N/A assert( bol->is_Bool(), "" );
0N/A if (bol->outcnt() == 1) {
0N/A Node* use = bol->unique_out();
0N/A Node *use_c = use->is_If() ? use->in(0) : get_ctrl(use);
0N/A if (use_c == blk1 || use_c == blk2) {
0N/A continue;
0N/A }
0N/A }
0N/A if (get_ctrl(bol) == blk1 || get_ctrl(bol) == blk2) {
0N/A // Recursively sink any BoolNode
0N/A#ifndef PRODUCT
0N/A if( PrintOpto && VerifyLoopOptimizations ) {
0N/A tty->print("Cloning down: ");
0N/A bol->dump();
0N/A }
0N/A#endif
0N/A for (DUIterator_Last jmin, j = bol->last_outs(jmin); j >= jmin; --j) {
0N/A // Uses are either IfNodes or CMoves
0N/A Node* iff = bol->last_out(j);
0N/A assert( iff->in(1) == bol, "" );
0N/A // Get control block of either the CMove or the If input
0N/A Node *iff_ctrl = iff->is_If() ? iff->in(0) : get_ctrl(iff);
0N/A Node *x = bol->clone();
0N/A register_new_node(x, iff_ctrl);
0N/A _igvn.hash_delete(iff);
0N/A iff->set_req(1, x);
0N/A _igvn._worklist.push(iff);
0N/A }
0N/A _igvn.remove_dead_node( bol );
0N/A --i;
0N/A }
0N/A }
0N/A // Clone down this CmpNode
0N/A for (DUIterator_Last jmin, j = n->last_outs(jmin); j >= jmin; --j) {
0N/A Node* bol = n->last_out(j);
0N/A assert( bol->in(1) == n, "" );
0N/A Node *x = n->clone();
0N/A register_new_node(x, get_ctrl(bol));
0N/A _igvn.hash_delete(bol);
0N/A bol->set_req(1, x);
0N/A _igvn._worklist.push(bol);
0N/A }
0N/A _igvn.remove_dead_node( n );
0N/A
0N/A return true;
0N/A }
0N/A }
0N/A
0N/A // See if splitting-up a Store. Any anti-dep loads must go up as
0N/A // well. An anti-dep load might be in the wrong block, because in
0N/A // this particular layout/schedule we ignored anti-deps and allow
0N/A // memory to be alive twice. This only works if we do the same
0N/A // operations on anti-dep loads as we do their killing stores.
0N/A if( n->is_Store() && n->in(MemNode::Memory)->in(0) == n->in(0) ) {
0N/A // Get store's memory slice
0N/A int alias_idx = C->get_alias_index(_igvn.type(n->in(MemNode::Address))->is_ptr());
0N/A
0N/A // Get memory-phi anti-dep loads will be using
0N/A Node *memphi = n->in(MemNode::Memory);
0N/A assert( memphi->is_Phi(), "" );
0N/A // Hoist any anti-dep load to the splitting block;
0N/A // it will then "split-up".
0N/A for (DUIterator_Fast imax,i = memphi->fast_outs(imax); i < imax; i++) {
0N/A Node *load = memphi->fast_out(i);
0N/A if( load->is_Load() && alias_idx == C->get_alias_index(_igvn.type(load->in(MemNode::Address))->is_ptr()) )
0N/A set_ctrl(load,blk1);
0N/A }
0N/A }
0N/A
0N/A // Found some other Node; must clone it up
0N/A#ifndef PRODUCT
0N/A if( PrintOpto && VerifyLoopOptimizations ) {
0N/A tty->print("Cloning up: ");
0N/A n->dump();
0N/A }
0N/A#endif
0N/A
0N/A // ConvI2L may have type information on it which becomes invalid if
0N/A // it moves up in the graph so change any clones so widen the type
0N/A // to TypeLong::INT when pushing it up.
0N/A const Type* rtype = NULL;
0N/A if (n->Opcode() == Op_ConvI2L && n->bottom_type() != TypeLong::INT) {
0N/A rtype = TypeLong::INT;
0N/A }
0N/A
0N/A // Now actually split-up this guy. One copy per control path merging.
0N/A Node *phi = PhiNode::make_blank(blk1, n);
0N/A for( uint j = 1; j < blk1->req(); j++ ) {
0N/A Node *x = n->clone();
0N/A // Widen the type of the ConvI2L when pushing up.
0N/A if (rtype != NULL) x->as_Type()->set_type(rtype);
0N/A if( n->in(0) && n->in(0) == blk1 )
0N/A x->set_req( 0, blk1->in(j) );
0N/A for( uint i = 1; i < n->req(); i++ ) {
0N/A Node *m = n->in(i);
0N/A if( get_ctrl(m) == blk1 ) {
0N/A assert( m->in(0) == blk1, "" );
0N/A x->set_req( i, m->in(j) );
0N/A }
0N/A }
0N/A register_new_node( x, blk1->in(j) );
0N/A phi->init_req( j, x );
0N/A }
0N/A // Announce phi to optimizer
0N/A register_new_node(phi, blk1);
0N/A
0N/A // Remove cloned-up value from optimizer; use phi instead
0N/A _igvn.hash_delete(n);
0N/A _igvn.subsume_node( n, phi );
0N/A
0N/A // (There used to be a self-recursive call to split_up() here,
0N/A // but it is not needed. All necessary forward walking is done
0N/A // by do_split_if() below.)
0N/A
0N/A return true;
0N/A}
0N/A
0N/A//------------------------------register_new_node------------------------------
0N/Avoid PhaseIdealLoop::register_new_node( Node *n, Node *blk ) {
0N/A assert(!n->is_CFG(), "must be data node");
0N/A _igvn.register_new_node_with_optimizer(n);
0N/A set_ctrl(n, blk);
0N/A IdealLoopTree *loop = get_loop(blk);
0N/A if( !loop->_child )
0N/A loop->_body.push(n);
0N/A}
0N/A
0N/A//------------------------------small_cache------------------------------------
0N/Astruct small_cache : public Dict {
0N/A
0N/A small_cache() : Dict( cmpkey, hashptr ) {}
0N/A Node *probe( Node *use_blk ) { return (Node*)((*this)[use_blk]); }
0N/A void lru_insert( Node *use_blk, Node *new_def ) { Insert(use_blk,new_def); }
0N/A};
0N/A
0N/A//------------------------------spinup-----------------------------------------
0N/A// "Spin up" the dominator tree, starting at the use site and stopping when we
0N/A// find the post-dominating point.
0N/A
0N/A// We must be at the merge point which post-dominates 'new_false' and
0N/A// 'new_true'. Figure out which edges into the RegionNode eventually lead up
0N/A// to false and which to true. Put in a PhiNode to merge values; plug in
0N/A// the appropriate false-arm or true-arm values. If some path leads to the
0N/A// original IF, then insert a Phi recursively.
0N/ANode *PhaseIdealLoop::spinup( Node *iff_dom, Node *new_false, Node *new_true, Node *use_blk, Node *def, small_cache *cache ) {
0N/A if (use_blk->is_top()) // Handle dead uses
0N/A return use_blk;
0N/A Node *prior_n = (Node*)0xdeadbeef;
0N/A Node *n = use_blk; // Get path input
0N/A assert( use_blk != iff_dom, "" );
0N/A // Here's the "spinup" the dominator tree loop. Do a cache-check
0N/A // along the way, in case we've come this way before.
0N/A while( n != iff_dom ) { // Found post-dominating point?
0N/A prior_n = n;
0N/A n = idom(n); // Search higher
0N/A Node *s = cache->probe( prior_n ); // Check cache
0N/A if( s ) return s; // Cache hit!
0N/A }
0N/A
0N/A Node *phi_post;
0N/A if( prior_n == new_false || prior_n == new_true ) {
0N/A phi_post = def->clone();
0N/A phi_post->set_req(0, prior_n );
0N/A register_new_node(phi_post, prior_n);
0N/A } else {
0N/A // This method handles both control uses (looking for Regions) or data
0N/A // uses (looking for Phis). If looking for a control use, then we need
0N/A // to insert a Region instead of a Phi; however Regions always exist
0N/A // previously (the hash_find_insert below would always hit) so we can
0N/A // return the existing Region.
0N/A if( def->is_CFG() ) {
0N/A phi_post = prior_n; // If looking for CFG, return prior
0N/A } else {
0N/A assert( def->is_Phi(), "" );
0N/A assert( prior_n->is_Region(), "must be a post-dominating merge point" );
0N/A
0N/A // Need a Phi here
0N/A phi_post = PhiNode::make_blank(prior_n, def);
0N/A // Search for both true and false on all paths till find one.
0N/A for( uint i = 1; i < phi_post->req(); i++ ) // For all paths
0N/A phi_post->init_req( i, spinup( iff_dom, new_false, new_true, prior_n->in(i), def, cache ) );
0N/A Node *t = _igvn.hash_find_insert(phi_post);
0N/A if( t ) { // See if we already have this one
0N/A // phi_post will not be used, so kill it
0N/A _igvn.remove_dead_node(phi_post);
0N/A phi_post->destruct();
0N/A phi_post = t;
0N/A } else {
0N/A register_new_node( phi_post, prior_n );
0N/A }
0N/A }
0N/A }
0N/A
0N/A // Update cache everywhere
0N/A prior_n = (Node*)0xdeadbeef; // Reset IDOM walk
0N/A n = use_blk; // Get path input
0N/A // Spin-up the idom tree again, basically doing path-compression.
0N/A // Insert cache entries along the way, so that if we ever hit this
0N/A // point in the IDOM tree again we'll stop immediately on a cache hit.
0N/A while( n != iff_dom ) { // Found post-dominating point?
0N/A prior_n = n;
0N/A n = idom(n); // Search higher
0N/A cache->lru_insert( prior_n, phi_post ); // Fill cache
0N/A } // End of while not gone high enough
0N/A
0N/A return phi_post;
0N/A}
0N/A
0N/A//------------------------------find_use_block---------------------------------
0N/A// Find the block a USE is in. Normally USE's are in the same block as the
0N/A// using instruction. For Phi-USE's, the USE is in the predecessor block
0N/A// along the corresponding path.
0N/ANode *PhaseIdealLoop::find_use_block( Node *use, Node *def, Node *old_false, Node *new_false, Node *old_true, Node *new_true ) {
0N/A // CFG uses are their own block
0N/A if( use->is_CFG() )
0N/A return use;
0N/A
0N/A if( use->is_Phi() ) { // Phi uses in prior block
0N/A // Grab the first Phi use; there may be many.
0N/A // Each will be handled as a separate iteration of
0N/A // the "while( phi->outcnt() )" loop.
0N/A uint j;
0N/A for( j = 1; j < use->req(); j++ )
0N/A if( use->in(j) == def )
0N/A break;
0N/A assert( j < use->req(), "def should be among use's inputs" );
0N/A return use->in(0)->in(j);
0N/A }
0N/A // Normal (non-phi) use
0N/A Node *use_blk = get_ctrl(use);
0N/A // Some uses are directly attached to the old (and going away)
0N/A // false and true branches.
0N/A if( use_blk == old_false ) {
0N/A use_blk = new_false;
0N/A set_ctrl(use, new_false);
0N/A }
0N/A if( use_blk == old_true ) {
0N/A use_blk = new_true;
0N/A set_ctrl(use, new_true);
0N/A }
0N/A
0N/A if (use_blk == NULL) { // He's dead, Jim
0N/A _igvn.hash_delete(use);
0N/A _igvn.subsume_node(use, C->top());
0N/A }
0N/A
0N/A return use_blk;
0N/A}
0N/A
0N/A//------------------------------handle_use-------------------------------------
0N/A// Handle uses of the merge point. Basically, split-if makes the merge point
0N/A// go away so all uses of the merge point must go away as well. Most block
0N/A// local uses have already been split-up, through the merge point. Uses from
0N/A// far below the merge point can't always be split up (e.g., phi-uses are
0N/A// pinned) and it makes too much stuff live. Instead we use a path-based
0N/A// solution to move uses down.
0N/A//
0N/A// If the use is along the pre-split-CFG true branch, then the new use will
0N/A// be from the post-split-CFG true merge point. Vice-versa for the false
0N/A// path. Some uses will be along both paths; then we sink the use to the
0N/A// post-dominating location; we may need to insert a Phi there.
0N/Avoid PhaseIdealLoop::handle_use( Node *use, Node *def, small_cache *cache, Node *region_dom, Node *new_false, Node *new_true, Node *old_false, Node *old_true ) {
0N/A
0N/A Node *use_blk = find_use_block(use,def,old_false,new_false,old_true,new_true);
0N/A if( !use_blk ) return; // He's dead, Jim
0N/A
0N/A // Walk up the dominator tree until I hit either the old IfFalse, the old
0N/A // IfTrue or the old If. Insert Phis where needed.
0N/A Node *new_def = spinup( region_dom, new_false, new_true, use_blk, def, cache );
0N/A
0N/A // Found where this USE goes. Re-point him.
0N/A uint i;
0N/A for( i = 0; i < use->req(); i++ )
0N/A if( use->in(i) == def )
0N/A break;
0N/A assert( i < use->req(), "def should be among use's inputs" );
0N/A _igvn.hash_delete(use);
0N/A use->set_req(i, new_def);
0N/A _igvn._worklist.push(use);
0N/A}
0N/A
0N/A//------------------------------do_split_if------------------------------------
0N/A// Found an If getting its condition-code input from a Phi in the same block.
0N/A// Split thru the Region.
0N/Avoid PhaseIdealLoop::do_split_if( Node *iff ) {
0N/A#ifndef PRODUCT
0N/A if( PrintOpto && VerifyLoopOptimizations )
0N/A tty->print_cr("Split-if");
0N/A#endif
0N/A C->set_major_progress();
0N/A Node *region = iff->in(0);
0N/A Node *region_dom = idom(region);
0N/A
0N/A // We are going to clone this test (and the control flow with it) up through
45N/A // the incoming merge point. We need to empty the current basic block.
45N/A // Clone any instructions which must be in this block up through the merge
45N/A // point.
45N/A DUIterator i, j;
45N/A bool progress = true;
45N/A while (progress) {
45N/A progress = false;
45N/A for (i = region->outs(); region->has_out(i); i++) {
45N/A Node* n = region->out(i);
45N/A if( n == region ) continue;
45N/A // The IF to be split is OK.
0N/A if( n == iff ) continue;
0N/A if( !n->is_Phi() ) { // Found pinned memory op or such
0N/A if (split_up(n, region, iff)) {
0N/A i = region->refresh_out_pos(i);
0N/A progress = true;
0N/A }
0N/A continue;
0N/A }
0N/A assert( n->in(0) == region, "" );
0N/A
0N/A // Recursively split up all users of a Phi
0N/A for (j = n->outs(); n->has_out(j); j++) {
0N/A Node* m = n->out(j);
0N/A // If m is dead, throw it away, and declare progress
0N/A if (_nodes[m->_idx] == NULL) {
0N/A _igvn.remove_dead_node(m);
0N/A // fall through
0N/A }
0N/A else if (m != iff && split_up(m, region, iff)) {
0N/A // fall through
0N/A } else {
0N/A continue;
0N/A }
0N/A // Something unpredictable changed.
0N/A // Tell the iterators to refresh themselves, and rerun the loop.
0N/A i = region->refresh_out_pos(i);
0N/A j = region->refresh_out_pos(j);
726N/A progress = true;
726N/A }
0N/A }
0N/A }
0N/A
0N/A // Now we have no instructions in the block containing the IF.
0N/A // Split the IF.
0N/A Node *new_iff = split_thru_region( iff, region );
0N/A
0N/A // Replace both uses of 'new_iff' with Regions merging True/False
0N/A // paths. This makes 'new_iff' go dead.
0N/A Node *old_false, *old_true;
0N/A Node *new_false, *new_true;
0N/A for (DUIterator_Last j2min, j2 = iff->last_outs(j2min); j2 >= j2min; --j2) {
0N/A Node *ifp = iff->last_out(j2);
0N/A assert( ifp->Opcode() == Op_IfFalse || ifp->Opcode() == Op_IfTrue, "" );
0N/A ifp->set_req(0, new_iff);
0N/A Node *ifpx = split_thru_region( ifp, region );
0N/A
0N/A // Replace 'If' projection of a Region with a Region of
0N/A // 'If' projections.
0N/A ifpx->set_req(0, ifpx); // A TRUE RegionNode
0N/A
0N/A // Setup dominator info
0N/A set_idom(ifpx, region_dom, dom_depth(region_dom) + 1);
0N/A
0N/A // Check for splitting loop tails
0N/A if( get_loop(iff)->tail() == ifp )
0N/A get_loop(iff)->_tail = ifpx;
0N/A
0N/A // Replace in the graph with lazy-update mechanism
0N/A new_iff->set_req(0, new_iff); // hook self so it does not go dead
0N/A lazy_replace_proj( ifp, ifpx );
0N/A new_iff->set_req(0, region);
0N/A
0N/A // Record bits for later xforms
0N/A if( ifp->Opcode() == Op_IfFalse ) {
0N/A old_false = ifp;
0N/A new_false = ifpx;
0N/A } else {
0N/A old_true = ifp;
0N/A new_true = ifpx;
0N/A }
0N/A }
0N/A _igvn.remove_dead_node(new_iff);
0N/A // Lazy replace IDOM info with the region's dominator
0N/A lazy_replace( iff, region_dom );
0N/A
0N/A // Now make the original merge point go dead, by handling all its uses.
0N/A small_cache region_cache;
0N/A // Preload some control flow in region-cache
0N/A region_cache.lru_insert( new_false, new_false );
0N/A region_cache.lru_insert( new_true , new_true );
0N/A // Now handle all uses of the splitting block
0N/A for (DUIterator_Last kmin, k = region->last_outs(kmin); k >= kmin; --k) {
0N/A Node* phi = region->last_out(k);
0N/A if( !phi->in(0) ) { // Dead phi? Remove it
0N/A _igvn.remove_dead_node(phi);
0N/A continue;
0N/A }
0N/A assert( phi->in(0) == region, "" );
0N/A if( phi == region ) { // Found the self-reference
0N/A phi->set_req(0, NULL);
0N/A continue; // Break the self-cycle
0N/A }
0N/A // Expected common case: Phi hanging off of Region
0N/A if( phi->is_Phi() ) {
0N/A // Need a per-def cache. Phi represents a def, so make a cache
0N/A small_cache phi_cache;
0N/A
0N/A // Inspect all Phi uses to make the Phi go dead
0N/A for (DUIterator_Last lmin, l = phi->last_outs(lmin); l >= lmin; --l) {
0N/A Node* use = phi->last_out(l);
0N/A // Compute the new DEF for this USE. New DEF depends on the path
0N/A // taken from the original DEF to the USE. The new DEF may be some
0N/A // collection of PHI's merging values from different paths. The Phis
0N/A // inserted depend only on the location of the USE. We use a
0N/A // 2-element cache to handle multiple uses from the same block.
0N/A handle_use( use, phi, &phi_cache, region_dom, new_false, new_true, old_false, old_true );
45N/A } // End of while phi has uses
45N/A
45N/A // Because handle_use might relocate region->_out,
0N/A // we must refresh the iterator.
0N/A k = region->last_outs(kmin);
0N/A
0N/A // Remove the dead Phi
0N/A _igvn.remove_dead_node( phi );
0N/A
0N/A } else {
0N/A // Random memory op guarded by Region. Compute new DEF for USE.
0N/A handle_use( phi, region, &region_cache, region_dom, new_false, new_true, old_false, old_true );
0N/A }
0N/A
0N/A } // End of while merge point has phis
0N/A
0N/A // Any leftover bits in the splitting block must not have depended on local
0N/A // Phi inputs (these have already been split-up). Hence it's safe to hoist
0N/A // these guys to the dominating point.
0N/A lazy_replace( region, region_dom );
0N/A#ifndef PRODUCT
0N/A if( VerifyLoopOptimizations ) verify();
0N/A#endif
0N/A}
0N/A