Skip to content

Commit 251bfa3

Browse files
author
badumbatish
committed
Remove old one off cse of poison folding
1 parent 69771ea commit 251bfa3

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

llvm/lib/Analysis/InstructionSimplify.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6673,13 +6673,7 @@ Value *llvm::simplifyBinaryIntrinsic(Intrinsic::ID IID, Type *ReturnType,
66736673
if (auto *C1 = dyn_cast<Constant>(Op1))
66746674
return simplifyRelativeLoad(C0, C1, Q.DL);
66756675
break;
6676-
case Intrinsic::pow:
6677-
if (isa<PoisonValue>(Op0) || isa<PoisonValue>(Op1))
6678-
return PoisonValue::get(ReturnType);
6679-
break;
66806676
case Intrinsic::powi:
6681-
if (isa<PoisonValue>(Op0) || isa<PoisonValue>(Op1))
6682-
return PoisonValue::get(ReturnType);
66836677
if (auto *Power = dyn_cast<ConstantInt>(Op1)) {
66846678
// powi(x, 0) -> 1.0
66856679
if (Power->isZero())

0 commit comments

Comments
 (0)