File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed
llvm/lib/Transforms/Scalar Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -1132,17 +1132,14 @@ void State::addInfoFor(BasicBlock &BB) {
1132
1132
case Intrinsic::umax:
1133
1133
case Intrinsic::smin:
1134
1134
case Intrinsic::smax:
1135
- // TODO: handle llvm.abs as well
1135
+ case Intrinsic::usub_sat:
1136
+ // TODO: handle llvm.abs as well
1136
1137
WorkList.push_back (
1137
1138
FactOrCheck::getCheck (DT.getNode (&BB), cast<CallInst>(&I)));
1138
1139
// TODO: Check if it is possible to instead only added the min/max facts
1139
1140
// when simplifying uses of the min/max intrinsics.
1140
- if (isGuaranteedNotToBePoison (&I))
1141
- WorkList.push_back (FactOrCheck::getInstFact (DT.getNode (&BB), &I));
1142
- break ;
1143
- case Intrinsic::usub_sat:
1144
- WorkList.push_back (
1145
- FactOrCheck::getCheck (DT.getNode (&BB), cast<CallInst>(&I)));
1141
+ if (!isGuaranteedNotToBePoison (&I))
1142
+ break ;
1146
1143
[[fallthrough]];
1147
1144
case Intrinsic::abs:
1148
1145
case Intrinsic::uadd_sat:
You can’t perform that action at this time.
0 commit comments