Skip to content

Commit 7d9d3ce

Browse files
committed
Remove NoNaNsFPMath in DAGCombiner
1 parent 4019b70 commit 7d9d3ce

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18337,8 +18337,7 @@ template <class MatchContextClass> SDValue DAGCombiner::visitFMA(SDNode *N) {
1833718337
return matcher.getNode(ISD::FMA, DL, VT, NegN0, NegN1, N2);
1833818338
}
1833918339

18340-
if ((Options.NoNaNsFPMath && N->getFlags().hasNoInfs()) ||
18341-
(N->getFlags().hasNoNaNs() && N->getFlags().hasNoInfs())) {
18340+
if (N->getFlags().hasNoNaNs() && N->getFlags().hasNoInfs()) {
1834218341
if (N->getFlags().hasNoSignedZeros() ||
1834318342
(N2CFP && !N2CFP->isExactlyValue(-0.0))) {
1834418343
if (N0CFP && N0CFP->isZero())

0 commit comments

Comments
 (0)