Skip to content

Commit 3fae301

Browse files
[fixup] Put back an assertion
1 parent 99a2e66 commit 3fae301

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

llvm/lib/Target/AArch64/AArch64ISelLowering.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15830,8 +15830,9 @@ static bool createTblShuffleMask(unsigned SrcWidth, unsigned DstWidth,
1583015830
if (DstWidth % 8 != 0 || DstWidth <= 16 || DstWidth >= 64)
1583115831
return false;
1583215832

15833-
if (DstWidth % SrcWidth != 0)
15834-
return false;
15833+
assert(DstWidth % SrcWidth == 0 &&
15834+
"TBL lowering is not supported for a conversion instruction with this "
15835+
"source and destination element type.");
1583515836

1583615837
unsigned Factor = DstWidth / SrcWidth;
1583715838
unsigned MaskLen = NumElts * Factor;

0 commit comments

Comments
 (0)