Skip to content

Commit cba5c77

Browse files
committed
[VPlan] Mark unreachable code path when retrieving the scalar PH. (NFCI)
1 parent fe8af49 commit cba5c77

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8866,11 +8866,8 @@ static void addLiveOutsForFirstOrderRecurrences(
88668866
ScalarPHVPBB = cast<VPBasicBlock>(MiddleVPBB->getSuccessors()[1]);
88678867
} else if (ExitUsersToFix.empty()) {
88688868
ScalarPHVPBB = cast<VPBasicBlock>(MiddleVPBB->getSingleSuccessor());
8869-
}
8870-
if (!ScalarPHVPBB) {
8871-
assert(ExitUsersToFix.empty() &&
8872-
"missed inserting extracts for exiting values");
8873-
return;
8869+
} else {
8870+
llvm_unreachable("unsupported CFG in VPlan");
88748871
}
88758872

88768873
VPBuilder ScalarPHBuilder(ScalarPHVPBB);

0 commit comments

Comments
 (0)