[llvm] [VPlan] Add initial CFG simplification, removing BranchOnCond true. (PR #106748)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 2 04:14:06 PDT 2025
================
@@ -2658,7 +2659,9 @@ void InnerLoopVectorizer::createVectorLoopSkeleton(StringRef Prefix) {
LoopScalarPreHeader =
SplitBlock(LoopVectorPreHeader, LoopVectorPreHeader->getTerminator(), DT,
LI, nullptr, Twine(Prefix) + "scalar.ph");
- replaceVPBBWithIRVPBB(Plan.getScalarPreheader(), LoopScalarPreHeader);
+ // NOTE: The Plan's scalar preheader isn't replaced with a VPIRBasicBlock
+ // wrapping LoopScalarPreHeader here at the moment, because the Plan's scalar
+ // preheader may be unreachable at this point.
----------------
fhahn wrote:
Done, thanks!
https://github.com/llvm/llvm-project/pull/106748
More information about the llvm-commits
mailing list