Skip to content

Commit 8c3bc9e

Browse files
committed
Remove UnsafeFPMath in visitFMUL
1 parent 69ac706 commit 8c3bc9e

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
@@ -17935,7 +17935,7 @@ SDValue DAGCombiner::visitFMUL(SDNode *N) {
1793517935
if (SDValue NewSel = foldBinOpIntoSelect(N))
1793617936
return NewSel;
1793717937

17938-
if (Options.UnsafeFPMath || Flags.hasAllowReassociation()) {
17938+
if (Flags.hasAllowReassociation()) {
1793917939
// fmul (fmul X, C1), C2 -> fmul X, C1 * C2
1794017940
if (DAG.isConstantFPBuildVectorOrConstantFP(N1) &&
1794117941
N0.getOpcode() == ISD::FMUL) {

0 commit comments

Comments
 (0)