Skip to content

Commit 7c70e37

Browse files
committed
!fixup add assertion guarding against unsupported exit values.
1 parent dda14f7 commit 7c70e37

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8892,6 +8892,8 @@ addUsersInExitBlocks(VPlan &Plan,
88928892
if (V->isLiveIn())
88938893
continue;
88948894

8895+
assert(ExitIRI->getParent()->getSinglePredecessor() == MiddleVPBB &&
8896+
"Exit value not handled yet for this edge.");
88958897
LLVMContext &Ctx = ExitIRI->getInstruction().getContext();
88968898
VPValue *Ext = B.createNaryOp(VPInstruction::ExtractFromEnd,
88978899
{V, Plan.getOrAddLiveIn(ConstantInt::get(

0 commit comments

Comments
 (0)