[llvm] d0f65ea - [RISCV] Remove unused variables. NFC
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Fri May 27 12:13:59 PDT 2022
Author: Craig Topper
Date: 2022-05-27T12:13:45-07:00
New Revision: d0f65eaa850dca87fb3d58868d42b4fa4c06537b
URL: https://github.com/llvm/llvm-project/commit/d0f65eaa850dca87fb3d58868d42b4fa4c06537b
DIFF: https://github.com/llvm/llvm-project/commit/d0f65eaa850dca87fb3d58868d42b4fa4c06537b.diff
LOG: [RISCV] Remove unused variables. NFC
Added:
Modified:
llvm/lib/Target/RISCV/RISCVISelLowering.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/RISCV/RISCVISelLowering.cpp b/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
index 17c8870f2419..67445adb3e17 100644
--- a/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
+++ b/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
@@ -3585,10 +3585,8 @@ template SDValue RISCVTargetLowering::getAddr<JumpTableSDNode>(
SDValue RISCVTargetLowering::lowerGlobalAddress(SDValue Op,
SelectionDAG &DAG) const {
SDLoc DL(Op);
- EVT Ty = Op.getValueType();
GlobalAddressSDNode *N = cast<GlobalAddressSDNode>(Op);
assert(N->getOffset() == 0 && "unexpected offset in global node");
- MVT XLenVT = Subtarget.getXLenVT();
const GlobalValue *GV = N->getGlobal();
bool IsLocal = getTargetMachine().shouldAssumeDSOLocal(*GV->getParent(), GV);
@@ -3699,10 +3697,8 @@ SDValue RISCVTargetLowering::getDynamicTLSAddr(GlobalAddressSDNode *N,
SDValue RISCVTargetLowering::lowerGlobalTLSAddress(SDValue Op,
SelectionDAG &DAG) const {
SDLoc DL(Op);
- EVT Ty = Op.getValueType();
GlobalAddressSDNode *N = cast<GlobalAddressSDNode>(Op);
assert(N->getOffset() == 0 && "unexpected offset in global node");
- MVT XLenVT = Subtarget.getXLenVT();
TLSModel::Model Model = getTargetMachine().getTLSModel(N->getGlobal());
More information about the llvm-commits
mailing list