[llvm] [VPlan] Replace VPRegionBlock with explicit CFG before execute (NFCI). (PR #117506)

Alexey Bataev via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 25 07:31:28 PST 2024


================
@@ -7763,7 +7758,7 @@ DenseMap<const SCEV *, Value *> LoopVectorizationPlanner::executePlan(
                                       LLVMLoopVectorizeFollowupVectorized});
 
   VPBasicBlock *HeaderVPBB =
-      BestVPlan.getVectorLoopRegion()->getEntryBasicBlock();
+      cast<VPBasicBlock>(BestVPlan.getVectorPreheader()->getSingleSuccessor());
----------------
alexey-bataev wrote:

```suggestion
  auto *HeaderVPBB =
      cast<VPBasicBlock>(BestVPlan.getVectorPreheader()->getSingleSuccessor());
```

https://github.com/llvm/llvm-project/pull/117506


More information about the llvm-commits mailing list