[llvm] 45e2809 - [TargetLowering] Use getShiftAmountConstant. NFC
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Sun Sep 4 20:23:08 PDT 2022
Author: Craig Topper
Date: 2022-09-04T20:22:32-07:00
New Revision: 45e2809f711e1f8abd9e08ae2e4263afe44dab13
URL: https://github.com/llvm/llvm-project/commit/45e2809f711e1f8abd9e08ae2e4263afe44dab13
DIFF: https://github.com/llvm/llvm-project/commit/45e2809f711e1f8abd9e08ae2e4263afe44dab13.diff
LOG: [TargetLowering] Use getShiftAmountConstant. NFC
Added:
Modified:
llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
Removed:
################################################################################
diff --git a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp b/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
index 2fdd79b3eda35..da15c85898d5a 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) &&
More information about the llvm-commits
mailing list