forked from OSchip/llvm-project
[TargetLowering] Use getShiftAmountConstant. NFC
This commit is contained in:
parent
baa9eae279
commit
45e2809f71
|
@ -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) &&
|
||||
|
|
Loading…
Reference in New Issue