[TargetLowering] Use getShiftAmountConstant. NFC

This commit is contained in:
Craig Topper 2022-09-04 19:42:14 -07:00
parent baa9eae279
commit 45e2809f71
1 changed files with 1 additions and 2 deletions

View File

@ -7043,8 +7043,7 @@ bool TargetLowering::expandMUL_LOHI(unsigned Opcode, EVT VT, const SDLoc &dl,
}
unsigned ShiftAmount = OuterBitSize - InnerBitSize;
EVT ShiftAmountTy = getShiftAmountTy(VT, DAG.getDataLayout());
SDValue Shift = DAG.getConstant(ShiftAmount, dl, ShiftAmountTy);
SDValue Shift = DAG.getShiftAmountConstant(ShiftAmount, VT, dl);
if (!LH.getNode() && !RH.getNode() &&
isOperationLegalOrCustom(ISD::SRL, VT) &&