projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d6a3661
)
[RISCV] Fix an unused variable warning
author
Kazu Hirata
<kazu@google.com>
Wed, 31 May 2023 15:45:29 +0000
(08:45 -0700)
committer
Kazu 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
patch
|
blob
|
history
diff --git
a/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
b/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
index
a28dbef
..
582e66b
100644
(file)
--- a/
llvm/lib/Target/RISCV/RISCVISelLowering.cpp
+++ b/
llvm/lib/Target/RISCV/RISCVISelLowering.cpp
@@
-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 ?