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 @@ -17581,7 +17581,7 @@ SDValue DAGCombiner::visitFADD(SDNode *N) {
17581
17581
// If 'unsafe math' or reassoc and nsz, fold lots of things.
17582
17582
// TODO: break out portions of the transformations below for which Unsafe is
17583
17583
// considered and which do not require both nsz and reassoc
17584
- if ((( Options.UnsafeFPMath && Options. NoSignedZerosFPMath) ||
17584
+ if ((Options.NoSignedZerosFPMath ||
17585
17585
(Flags.hasAllowReassociation() && Flags.hasNoSignedZeros())) &&
17586
17586
AllowNewConst) {
17587
17587
// fadd (fadd x, c1), c2 -> fadd x, c1 + c2
@@ -17668,7 +17668,7 @@ SDValue DAGCombiner::visitFADD(SDNode *N) {
17668
17668
}
17669
17669
} // enable-unsafe-fp-math && AllowNewConst
17670
17670
17671
- if ((( Options.UnsafeFPMath && Options. NoSignedZerosFPMath) ||
17671
+ if ((Options.NoSignedZerosFPMath ||
17672
17672
(Flags.hasAllowReassociation() && Flags.hasNoSignedZeros()))) {
17673
17673
// Fold fadd(vecreduce(x), vecreduce(y)) -> vecreduce(fadd(x, y))
17674
17674
if (SDValue SD = reassociateReduction(ISD::VECREDUCE_FADD, ISD::FADD, DL,
You can’t perform that action at this time.
0 commit comments