Skip to content

Commit da20b2a

Browse files
committed
Add assertion
1 parent f6c5839 commit da20b2a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

llvm/lib/Target/AArch64/AArch64ISelLowering.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21772,6 +21772,11 @@ SDValue tryLowerPartialReductionToDot(SDNode *N,
2177221772
const AArch64Subtarget *Subtarget,
2177321773
SelectionDAG &DAG) {
2177421774

21775+
assert(N->getOpcode() == ISD::INTRINSIC_WO_CHAIN &&
21776+
getIntrinsicID(N) ==
21777+
Intrinsic::experimental_vector_partial_reduce_add &&
21778+
"Expected a partial reduction node");
21779+
2177521780
if (!Subtarget->isSVEAvailable() && !Subtarget->isNeonAvailable())
2177621781
return SDValue();
2177721782

0 commit comments

Comments
 (0)