@@ -17398,14 +17398,14 @@ template <class MatchContextClass> SDValue DAGCombiner::visitFMA(SDNode *N) {
17398
17398
17399
17399
// FIXME: Support splat of constant.
17400
17400
if (N0CFP && N0CFP->isExactlyValue(1.0))
17401
- return matcher.getNode(ISD::FADD, SDLoc(N) , VT, N1, N2);
17401
+ return matcher.getNode(ISD::FADD, DL , VT, N1, N2);
17402
17402
if (N1CFP && N1CFP->isExactlyValue(1.0))
17403
- return matcher.getNode(ISD::FADD, SDLoc(N) , VT, N0, N2);
17403
+ return matcher.getNode(ISD::FADD, DL , VT, N0, N2);
17404
17404
17405
17405
// Canonicalize (fma c, x, y) -> (fma x, c, y)
17406
17406
if (DAG.isConstantFPBuildVectorOrConstantFP(N0) &&
17407
17407
!DAG.isConstantFPBuildVectorOrConstantFP(N1))
17408
- return matcher.getNode(ISD::FMA, SDLoc(N) , VT, N1, N0, N2);
17408
+ return matcher.getNode(ISD::FMA, DL , VT, N1, N0, N2);
17409
17409
17410
17410
bool CanReassociate =
17411
17411
Options.UnsafeFPMath || N->getFlags().hasAllowReassociation();
@@ -17713,7 +17713,7 @@ SDValue DAGCombiner::visitFDIV(SDNode *N) {
17713
17713
TLI.getNegatedExpression(N1, DAG, LegalOperations, ForCodeSize, CostN1);
17714
17714
if (NegN1 && (CostN0 == TargetLowering::NegatibleCost::Cheaper ||
17715
17715
CostN1 == TargetLowering::NegatibleCost::Cheaper))
17716
- return DAG.getNode(ISD::FDIV, SDLoc(N) , VT, NegN0, NegN1);
17716
+ return DAG.getNode(ISD::FDIV, DL , VT, NegN0, NegN1);
17717
17717
}
17718
17718
17719
17719
if (SDValue R = combineFMulOrFDivWithIntPow2(N))
0 commit comments