[llvm] [VPlan] Model middle block via VPIRBasicBlock. (PR #95816)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 20 02:24:35 PDT 2024


================
@@ -851,6 +863,9 @@ void VPlan::execute(VPTransformState *State) {
   State->CFG.ExitBB = State->CFG.PrevBB->getSingleSuccessor();
   BasicBlock *VectorPreHeader = State->CFG.PrevBB;
   State->Builder.SetInsertPoint(VectorPreHeader->getTerminator());
+  replaceVPBBWithIRVPBB(
----------------
fhahn wrote:

Left at the current position as it re-uses `State->CFG.ExitBB` which is set just above

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


More information about the llvm-commits mailing list