Skip to content

Commit

Permalink
[InstCombine] Fixup commit 7253c6f (llvm#123315)
Browse files Browse the repository at this point in the history
This should fix the assert failure we were getting for the darwin OS.
  • Loading branch information
sushgokh authored Jan 17, 2025
1 parent 32a4650 commit e79bb87
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2067,8 +2067,7 @@ convertFSqrtDivIntoFMul(CallInst *CI, Instruction *X,
FMul->copyMetadata(*X);
FMul->copyFastMathFlags(FastMathFlags::intersectRewrite(R1FMF, R2FMF) |
FastMathFlags::unionValue(R1FMF, R2FMF));
IC->replaceInstUsesWith(*X, FMul);
return IC->eraseInstFromFunction(*X);
return IC->replaceInstUsesWith(*X, FMul);
}

Instruction *InstCombinerImpl::visitFDiv(BinaryOperator &I) {
Expand Down

0 comments on commit e79bb87

Please sign in to comment.