8367690: C2: Unneeded branch in reduce_phi

Reviewed-by: rcastanedalo, chagedorn
This commit is contained in:
Anton Seoane Ampudia 2025-10-22 09:08:26 +00:00 committed by Roberto Castañeda Lozano
parent 6bf3581bba
commit bdfd5e843a

View File

@ -1296,9 +1296,8 @@ void ConnectionGraph::reduce_phi(PhiNode* ophi, GrowableArray<Node *> &alloc_wo
castpps.push(use);
} else if (use->is_AddP() || use->is_Cmp()) {
others.push(use);
} else if (use->is_SafePoint()) {
// processed later
} else {
// Safepoints to be processed later; other users aren't expected here
assert(use->is_SafePoint(), "Unexpected user of reducible Phi %d -> %d:%s:%d", ophi->_idx, use->_idx, use->Name(), use->outcnt());
}
}