From 45e2809f711e1f8abd9e08ae2e4263afe44dab13 Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Sun, 4 Sep 2022 19:42:14 -0700 Subject: [PATCH] [TargetLowering] Use getShiftAmountConstant. NFC --- llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp b/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp index 2fdd79b..da15c85 100644 --- a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp @@ -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) && -- 2.7.4