Skip to content

Commit

Permalink
[GR-52903] IfNode.sameDestination should check deopt frame states
Browse files Browse the repository at this point in the history
PullRequest: graal/17363
  • Loading branch information
tkrodriguez committed Mar 26, 2024
2 parents 375abd0 + def7b02 commit 0fe3734
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1327,7 +1327,7 @@ public static boolean sameDestination(AbstractBeginNode succ1, AbstractBeginNode
} else if (next1 instanceof DeoptimizeNode && next2 instanceof DeoptimizeNode) {
DeoptimizeNode deopt1 = (DeoptimizeNode) next1;
DeoptimizeNode deopt2 = (DeoptimizeNode) next2;
if (deopt1.getReason() == deopt2.getReason() && deopt1.getAction() == deopt2.getAction()) {
if (deopt1.getReason() == deopt2.getReason() && deopt1.getAction() == deopt2.getAction() && deopt1.stateBefore() == deopt2.stateBefore()) {
// Same deoptimization reason and action.
return true;
}
Expand Down

0 comments on commit 0fe3734

Please sign in to comment.