[llvm] [CodeGen] Remove NoSignedZerosFPMath uses (PR #156147)
Sergei Barannikov via llvm-commits
llvm-commits at lists.llvm.org
Sat Aug 30 06:19:33 PDT 2025
================
@@ -19195,9 +19188,8 @@ SDValue DAGCombiner::visitFNEG(SDNode *N) {
// FIXME: This is duplicated in getNegatibleCost, but getNegatibleCost doesn't
// know it was called from a context with a nsz flag if the input fsub does
// not.
- if (N0.getOpcode() == ISD::FSUB &&
- (DAG.getTarget().Options.NoSignedZerosFPMath ||
- N->getFlags().hasNoSignedZeros()) && N0.hasOneUse()) {
+ if (N0.getOpcode() == ISD::FSUB && (N->getFlags().hasNoSignedZeros()) &&
----------------
s-barannikov wrote:
```suggestion
if (N0.getOpcode() == ISD::FSUB && N->getFlags().hasNoSignedZeros() &&
```
https://github.com/llvm/llvm-project/pull/156147
More information about the llvm-commits
mailing list