File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
llvm/lib/CodeGen/SelectionDAG Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -17632,7 +17632,7 @@ SDValue DAGCombiner::visitFADD(SDNode *N) {
17632
17632
// If 'unsafe math' or reassoc and nsz, fold lots of things.
17633
17633
// TODO: break out portions of the transformations below for which Unsafe is
17634
17634
// considered and which do not require both nsz and reassoc
17635
- if ((( Options.UnsafeFPMath && Options. NoSignedZerosFPMath) ||
17635
+ if ((Options.NoSignedZerosFPMath ||
17636
17636
(Flags.hasAllowReassociation() && Flags.hasNoSignedZeros())) &&
17637
17637
AllowNewConst) {
17638
17638
// fadd (fadd x, c1), c2 -> fadd x, c1 + c2
@@ -17719,7 +17719,7 @@ SDValue DAGCombiner::visitFADD(SDNode *N) {
17719
17719
}
17720
17720
} // enable-unsafe-fp-math && AllowNewConst
17721
17721
17722
- if ((( Options.UnsafeFPMath && Options. NoSignedZerosFPMath) ||
17722
+ if ((Options.NoSignedZerosFPMath ||
17723
17723
(Flags.hasAllowReassociation() && Flags.hasNoSignedZeros()))) {
17724
17724
// Fold fadd(vecreduce(x), vecreduce(y)) -> vecreduce(fadd(x, y))
17725
17725
if (SDValue SD = reassociateReduction(ISD::VECREDUCE_FADD, ISD::FADD, DL,
You can’t perform that action at this time.
0 commit comments