[RISCV] Fix an unused variable warning
authorKazu Hirata <kazu@google.com>
Wed, 31 May 2023 15:45:29 +0000 (08:45 -0700)
committerKazu Hirata <kazu@google.com>
Wed, 31 May 2023 15:45:29 +0000 (08:45 -0700)
 llvm-project/llvm/lib/Target/RISCV/RISCVISelLowering.cpp:3793:7:
 error: unused variable 'XLenVT' [-Werror,-Wunused-variable]

llvm/lib/Target/RISCV/RISCVISelLowering.cpp

index a28dbef..582e66b 100644 (file)
@@ -3790,7 +3790,6 @@ static SDValue lowerVECTOR_SHUFFLEAsVSlide1(const SDLoc &DL, MVT VT,
   if (InsertIdx < 0 || InsertIdx / NumElts != (unsigned)OpsSwapped)
     return SDValue();
 
-  MVT XLenVT = Subtarget.getXLenVT();
   MVT ContainerVT = getContainerForFixedLengthVector(DAG, VT, Subtarget);
   auto [TrueMask, VL] = getDefaultVLOps(VT, ContainerVT, DL, DAG, Subtarget);
   auto OpCode = IsVSlidedown ?