[llvm] cba5c77 - [VPlan] Mark unreachable code path when retrieving the scalar PH. (NFCI)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Sat Oct 19 19:15:00 PDT 2024
Author: Florian Hahn
Date: 2024-10-19T19:14:21-07:00
New Revision: cba5c77a715cfa5892c69b6c646556825932575b
URL: https://github.com/llvm/llvm-project/commit/cba5c77a715cfa5892c69b6c646556825932575b
DIFF: https://github.com/llvm/llvm-project/commit/cba5c77a715cfa5892c69b6c646556825932575b.diff
LOG: [VPlan] Mark unreachable code path when retrieving the scalar PH. (NFCI)
Added:
Modified:
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
index a95ac032b1ffbc..0d35bfb921dc79 100644
--- a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
+++ b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
@@ -8866,11 +8866,8 @@ static void addLiveOutsForFirstOrderRecurrences(
ScalarPHVPBB = cast<VPBasicBlock>(MiddleVPBB->getSuccessors()[1]);
} else if (ExitUsersToFix.empty()) {
ScalarPHVPBB = cast<VPBasicBlock>(MiddleVPBB->getSingleSuccessor());
- }
- if (!ScalarPHVPBB) {
- assert(ExitUsersToFix.empty() &&
- "missed inserting extracts for exiting values");
- return;
+ } else {
+ llvm_unreachable("unsupported CFG in VPlan");
}
VPBuilder ScalarPHBuilder(ScalarPHVPBB);
More information about the llvm-commits
mailing list