8215755: ZGC: split_barrier_thru_phi: check number of inputs of phi
Reviewed-by: pliden, thartmann
This commit is contained in:
parent
cab9667f41
commit
ff00dcde77
@ -1170,7 +1170,7 @@ static bool split_barrier_thru_phi(PhaseIdealLoop* phase, LoadBarrierNode* lb) {
|
||||
if (lb->in(LoadBarrierNode::Oop)->is_Phi()) {
|
||||
Node* oop_phi = lb->in(LoadBarrierNode::Oop);
|
||||
|
||||
if (oop_phi->in(2) == oop_phi) {
|
||||
if ((oop_phi->req() != 3) || (oop_phi->in(2) == oop_phi)) {
|
||||
// Ignore phis with only one input
|
||||
return false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user