[llvm] [VPlan] Replace VPRegionBlock with explicit CFG before execute (NFCI). (PR #117506)
via llvm-commits
llvm-commits at lists.llvm.org
Sun May 11 05:02:11 PDT 2025
================
@@ -527,6 +549,14 @@ void VPBasicBlock::execute(VPTransformState *State) {
// 2. Fill the IR basic block with IR instructions.
executeRecipes(State, NewBB);
+
+ // If this block is a latch, update CurrentParentLoop.
----------------
ayalz wrote:
Checking if current canonical block `isLatch` could be done by checking if its 2nd successor `isHeader`?
(Preheader has a single successor whereas latch of canonicalized vector loop has two, with header as 2nd).
https://github.com/llvm/llvm-project/pull/117506
More information about the llvm-commits
mailing list