Skip to content

Commit 6e46426

Browse files
author
Felix Kellenbenz
committed
Replace unconditionally
1 parent 34be781 commit 6e46426

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1924,13 +1924,11 @@ Instruction *InstCombinerImpl::visitFDiv(BinaryOperator &I) {
19241924

19251925
Instruction *Replacement = replaceInstUsesWith(I, Res);
19261926

1927-
if (!Op0AsCallBase->use_empty())
1928-
Op0AsCallBase->replaceAllUsesWith(
1929-
PoisonValue::get(Op0AsCallBase->getType()));
1927+
Op0AsCallBase->replaceAllUsesWith(
1928+
PoisonValue::get(Op0AsCallBase->getType()));
19301929

1931-
if (!Op1AsCallBase->use_empty())
1932-
Op1AsCallBase->replaceAllUsesWith(
1933-
PoisonValue::get(Op1AsCallBase->getType()));
1930+
Op1AsCallBase->replaceAllUsesWith(
1931+
PoisonValue::get(Op1AsCallBase->getType()));
19341932

19351933
Op0AsCallBase->eraseFromParent();
19361934
Op1AsCallBase->eraseFromParent();

0 commit comments

Comments
 (0)