Skip to content

Commit 8358992

Browse files
committed
fixup! [ConstraintElim] Simplify MinMaxIntrinsic
1 parent 944cef0 commit 8358992

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

llvm/lib/Transforms/Scalar/ConstraintElimination.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1072,8 +1072,10 @@ void State::addInfoFor(BasicBlock &BB) {
10721072
[[fallthrough]];
10731073
case Intrinsic::abs:
10741074
WorkList.push_back(FactOrCheck::getInstFact(DT.getNode(&BB), &I));
1075-
WorkList.push_back(
1076-
FactOrCheck::getCheck(DT.getNode(&BB), cast<CallInst>(&I)));
1075+
// TODO: handle llvm.abs as well
1076+
if (ID != Intrinsic::abs)
1077+
WorkList.push_back(
1078+
FactOrCheck::getCheck(DT.getNode(&BB), cast<CallInst>(&I)));
10771079
break;
10781080
}
10791081

0 commit comments

Comments
 (0)