mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-16 09:04:41 +02:00
7160161: Missed safepoint in non-Counted loop
Do not remove safepoints during peeling optimization. Reviewed-by: twisti
This commit is contained in:
parent
373b8ccd27
commit
da65cc4532
3 changed files with 45 additions and 26 deletions
|
@ -547,11 +547,6 @@ void PhaseIdealLoop::do_peeling( IdealLoopTree *loop, Node_List &old_new ) {
|
|||
Node *nnn = old_new[old->_idx];
|
||||
if (!has_ctrl(nnn))
|
||||
set_idom(nnn, idom(nnn), dd-1);
|
||||
// While we're at it, remove any SafePoints from the peeled code
|
||||
if (old->Opcode() == Op_SafePoint) {
|
||||
Node *nnn = old_new[old->_idx];
|
||||
lazy_replace(nnn,nnn->in(TypeFunc::Control));
|
||||
}
|
||||
}
|
||||
|
||||
// Now force out all loop-invariant dominating tests. The optimizer
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue