Skip to content

Commit f009e05

Browse files
committed
[SelectionDAG] Remove UnsafeFPMath check in visitFADDForFMACombine
1 parent dd3edc8 commit f009e05

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16320,8 +16320,8 @@ SDValue DAGCombiner::visitFADDForFMACombine(SDNode *N) {
1632016320
if (!HasFMAD && !HasFMA)
1632116321
return SDValue();
1632216322

16323-
bool AllowFusionGlobally = (Options.AllowFPOpFusion == FPOpFusion::Fast ||
16324-
Options.UnsafeFPMath || HasFMAD);
16323+
bool AllowFusionGlobally =
16324+
Options.AllowFPOpFusion == FPOpFusion::Fast || HasFMAD;
1632516325
// If the addition is not contractable, do not combine.
1632616326
if (!AllowFusionGlobally && !N->getFlags().hasAllowContract())
1632716327
return SDValue();

0 commit comments

Comments
 (0)