[TargetLowering] Use getShiftAmountConstant. NFC
authorCraig Topper <craig.topper@sifive.com>
Mon, 5 Sep 2022 02:42:14 +0000 (19:42 -0700)
committerCraig Topper <craig.topper@sifive.com>
Mon, 5 Sep 2022 03:22:32 +0000 (20:22 -0700)
llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp

index 2fdd79b..da15c85 100644 (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) &&