Skip to content

Commit cf7335d

Browse files
committed
Assert ImmToTile in SelectMultiVectorLuti
1 parent 4301960 commit cf7335d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1875,7 +1875,8 @@ void AArch64DAGToDAGISel::SelectMultiVectorLuti(SDNode *Node,
18751875
return;
18761876

18771877
SDValue ZtValue;
1878-
ImmToTile<AArch64::ZT0, 0>(Node->getOperand(2), ZtValue);
1878+
if (!ImmToTile<AArch64::ZT0, 0>(Node->getOperand(2), ZtValue))
1879+
return;
18791880
SDValue Ops[] = {ZtValue, Node->getOperand(3), Node->getOperand(4)};
18801881
SDLoc DL(Node);
18811882
EVT VT = Node->getValueType(0);

0 commit comments

Comments
 (0)