[llvm] 5259fae - [AArch64] Remove unused variable 'MaskSize' in GenerateFixedLengthSVETBL (NFC)
Jie Fu via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 8 06:43:11 PST 2023
Author: Jie Fu
Date: 2023-11-08T22:42:20+08:00
New Revision: 5259fae710688350a129507d127c2204a4343b23
URL: https://github.com/llvm/llvm-project/commit/5259fae710688350a129507d127c2204a4343b23
DIFF: https://github.com/llvm/llvm-project/commit/5259fae710688350a129507d127c2204a4343b23.diff
LOG: [AArch64] Remove unused variable 'MaskSize' in GenerateFixedLengthSVETBL (NFC)
/llvm-project/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp:26139:12: error: unused variable 'MaskSize' [-Werror,-Wunused-variable]
unsigned MaskSize = ShuffleMask.size();
^
1 error generated.
Added:
Modified:
llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp b/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
index 0fb9c3ef2cd275e..c65fb9d5c08c9de 100644
--- a/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
+++ b/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
@@ -26136,7 +26136,6 @@ static SDValue GenerateFixedLengthSVETBL(SDValue Op, SDValue Op1, SDValue Op2,
unsigned BitsPerElt = VTOp1.getVectorElementType().getSizeInBits();
unsigned IndexLen = MinSVESize / BitsPerElt;
unsigned ElementsPerVectorReg = VTOp1.getVectorNumElements();
- unsigned MaskSize = ShuffleMask.size();
uint64_t MaxOffset = APInt(BitsPerElt, -1, false).getZExtValue();
assert(ElementsPerVectorReg <= IndexLen && ShuffleMask.size() <= IndexLen &&
"Incorrectly legalised shuffle operation");
More information about the llvm-commits
mailing list