Skip to content

Commit 67c7d1c

Browse files
committed
[DAGCombiner] Remove NoSignedZerosFPMath in visitFNEG
1 parent 32baec4 commit 67c7d1c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19301,9 +19301,8 @@ SDValue DAGCombiner::visitFNEG(SDNode *N) {
1930119301
// FIXME: This is duplicated in getNegatibleCost, but getNegatibleCost doesn't
1930219302
// know it was called from a context with a nsz flag if the input fsub does
1930319303
// not.
19304-
if (N0.getOpcode() == ISD::FSUB &&
19305-
(DAG.getTarget().Options.NoSignedZerosFPMath ||
19306-
N->getFlags().hasNoSignedZeros()) && N0.hasOneUse()) {
19304+
if (N0.getOpcode() == ISD::FSUB && N->getFlags().hasNoSignedZeros() &&
19305+
N0.hasOneUse()) {
1930719306
return DAG.getNode(ISD::FSUB, SDLoc(N), VT, N0.getOperand(1),
1930819307
N0.getOperand(0));
1930919308
}

0 commit comments

Comments
 (0)