[llvm] abc6716 - [RISCV] Remove unused variables. NFC
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 2 19:31:36 PST 2022
Author: Craig Topper
Date: 2022-02-02T19:23:16-08:00
New Revision: abc67160389cf5a4891adbd52b7e0326492271c2
URL: https://github.com/llvm/llvm-project/commit/abc67160389cf5a4891adbd52b7e0326492271c2
DIFF: https://github.com/llvm/llvm-project/commit/abc67160389cf5a4891adbd52b7e0326492271c2.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 070a8064324d7..c0b5437d36e3e 100644
--- a/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
+++ b/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
@@ -7808,10 +7808,6 @@ SDValue RISCVTargetLowering::PerformDAGCombine(SDNode *N,
case RISCVISD::SHFLW:
case RISCVISD::UNSHFLW: {
// Only the lower 32 bits of LHS and lower 4 bits of RHS are read.
- SDValue LHS = N->getOperand(0);
- SDValue RHS = N->getOperand(1);
- APInt LHSMask = APInt::getLowBitsSet(LHS.getValueSizeInBits(), 32);
- APInt RHSMask = APInt::getLowBitsSet(RHS.getValueSizeInBits(), 4);
if (SimplifyDemandedLowBitsHelper(0, 32) ||
SimplifyDemandedLowBitsHelper(1, 4))
return SDValue(N, 0);
More information about the llvm-commits
mailing list