Skip to content

Commit

Permalink
InstCombine: Remove dead fsub-as-fneg handling
Browse files Browse the repository at this point in the history
The above combine matching m_FNeg to produce a new fneg always would
hide this.
  • Loading branch information
arsenm committed Aug 2, 2023
1 parent 7c349c3 commit ed0dbfe
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2638,9 +2638,6 @@ Instruction *InstCombinerImpl::visitFSub(BinaryOperator &I) {
if (Instruction *X = foldFNegIntoConstant(I, DL))
return X;

if (Instruction *R = hoistFNegAboveFMulFDiv(I, Builder))
return R;

Value *X, *Y;
Constant *C;

Expand Down

0 comments on commit ed0dbfe

Please sign in to comment.