diff options
| author | Craig Topper <craig.topper@sifive.com> | 2022-09-04 19:42:14 -0700 |
|---|---|---|
| committer | Craig Topper <craig.topper@sifive.com> | 2022-09-04 20:22:32 -0700 |
| commit | 45e2809f711e1f8abd9e08ae2e4263afe44dab13 (patch) | |
| tree | b8b02d4afb81a9c2370f5e2f7292f3156e8c7e34 | |
| parent | baa9eae279c1639f406015734ebbf4c429b15c21 (diff) | |
| download | llvm-45e2809f711e1f8abd9e08ae2e4263afe44dab13.zip llvm-45e2809f711e1f8abd9e08ae2e4263afe44dab13.tar.gz llvm-45e2809f711e1f8abd9e08ae2e4263afe44dab13.tar.bz2 | |
[TargetLowering] Use getShiftAmountConstant. NFC
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp | 3 |
1 files changed, 1 insertions, 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) && |
