Skip to content

Commit

Permalink
[AArch64] Remove unused variable 'MaskSize' in GenerateFixedLengthSVE…
Browse files Browse the repository at this point in the history
…TBL (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.
  • Loading branch information
DamonFool committed Nov 8, 2023
1 parent 3f9d385 commit 5259fae
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 5259fae

Please sign in to comment.