6743188: incomplete fix for 6700047 C2 failed in idom_no_update

Reviewed-by: rasbold, kvn
This commit is contained in:
Tom Rodriguez 2008-10-03 13:58:20 -07:00
parent adce6fc49a
commit 043fde10e5
4 changed files with 29 additions and 20 deletions

View file

@ -1903,9 +1903,6 @@ void PhaseIdealLoop::clone_for_use_outside_loop( IdealLoopTree *loop, Node* n, N
// Use in a phi is considered a use in the associated predecessor block
use_c = use->in(0)->in(j);
}
if (use_c->is_CountedLoop()) {
use_c = use_c->in(LoopNode::EntryControl);
}
set_ctrl(n_clone, use_c);
assert(!loop->is_member(get_loop(use_c)), "should be outside loop");
get_loop(use_c)->_body.push(n_clone);