Skip to content

Commit 5f9811c

Browse files
Small changes. Modify assertions in verifyTargetSDNode
1 parent 0996ab0 commit 5f9811c

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

llvm/lib/Target/AArch64/AArch64ISelLowering.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29721,12 +29721,13 @@ void AArch64TargetLowering::verifyTargetSDNode(const SDNode *N) const {
2972129721
EVT Op0VT = N->getOperand(0).getValueType();
2972229722
EVT Op1VT = N->getOperand(1).getValueType();
2972329723
assert(VT.isVector() && Op0VT.isVector() && Op1VT.isVector() &&
29724-
"Expected vectors!");
29725-
assert(VT.getSizeInBits() == Op0VT.getSizeInBits() &&
29726-
Op0VT.getSizeInBits() == Op1VT.getSizeInBits() &&
29724+
VT.isInteger() && Op0VT.isInteger() && Op1VT.isInteger() &&
29725+
"Expected integer vectors!");
29726+
assert(VT == Op0VT &&
29727+
"Expected result and first input to have the same type!");
29728+
assert(Op0VT.getSizeInBits() == Op1VT.getSizeInBits() &&
2972729729
"Expected vectors of equal size!");
2972829730
assert(Op0VT.getVectorElementCount() * 2 == Op1VT.getVectorElementCount() &&
29729-
Op0VT.getVectorElementCount() == VT.getVectorElementCount() &&
2973029731
"Expected result vector and first input vector to have half the "
2973129732
"lanes of the second input vector!");
2973229733
break;

0 commit comments

Comments
 (0)