Skip to content

Commit 89fe429

Browse files
authored
[DAG] canCreateUndefOrPoison - remove isGuaranteedNotToBeUndefOrPoison check for shift nodes (#146502)
No longer necessary now that #146490 has landed - we still have the test coverage from #94145 that covers this.
1 parent 5684156 commit 89fe429

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5623,9 +5623,7 @@ bool SelectionDAG::canCreateUndefOrPoison(SDValue Op, const APInt &DemandedElts,
56235623
case ISD::SRA:
56245624
// If the max shift amount isn't in range, then the shift can
56255625
// create poison.
5626-
return !isGuaranteedNotToBeUndefOrPoison(Op.getOperand(1), DemandedElts,
5627-
PoisonOnly, Depth + 1) ||
5628-
!getValidMaximumShiftAmount(Op, DemandedElts, Depth + 1);
5626+
return !getValidMaximumShiftAmount(Op, DemandedElts, Depth + 1);
56295627

56305628
case ISD::CTTZ_ZERO_UNDEF:
56315629
case ISD::CTLZ_ZERO_UNDEF:

0 commit comments

Comments
 (0)