Skip to content

Commit e9de258

Browse files
committed
Remove UnsafeFPMath in visitFSUB
1 parent 59f3176 commit e9de258

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
@@ -17822,7 +17822,7 @@ SDValue DAGCombiner::visitFSUB(SDNode *N) {
1782217822
}
1782317823
}
1782417824

17825-
if (((Options.UnsafeFPMath && Options.NoSignedZerosFPMath) ||
17825+
if ((Options.NoSignedZerosFPMath ||
1782617826
(Flags.hasAllowReassociation() && Flags.hasNoSignedZeros())) &&
1782717827
N1.getOpcode() == ISD::FADD) {
1782817828
// X - (X + Y) -> -Y

0 commit comments

Comments
 (0)