Skip to content

Commit 69ac706

Browse files
committed
Remove UnsafeFPMath in visitFSUB
1 parent 5dda9d9 commit 69ac706

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17771,7 +17771,7 @@ SDValue DAGCombiner::visitFSUB(SDNode *N) {
1777117771
}
1777217772
}
1777317773

17774-
if (((Options.UnsafeFPMath && Options.NoSignedZerosFPMath) ||
17774+
if ((Options.NoSignedZerosFPMath ||
1777517775
(Flags.hasAllowReassociation() && Flags.hasNoSignedZeros())) &&
1777617776
N1.getOpcode() == ISD::FADD) {
1777717777
// X - (X + Y) -> -Y

0 commit comments

Comments
 (0)