[llvm] [VPlan] Use DomTreeUpdater to automatically update DT for vector loop. (PR #92525)
via llvm-commits
llvm-commits at lists.llvm.org
Wed May 22 13:53:28 PDT 2024
================
@@ -829,6 +832,9 @@ void VPlan::execute(VPTransformState *State) {
BasicBlock *VectorPreHeader = State->CFG.PrevBB;
State->Builder.SetInsertPoint(VectorPreHeader->getTerminator());
+ State->DTU.applyUpdates(
+ {{DominatorTree::Delete, VectorPreHeader, State->CFG.ExitBB}});
----------------
ayalz wrote:
ExitBB is (still, the single) successor of PrevBB=VectorPreHeader, should they first be disconnected before updating DTU with their edge's deletion?
https://github.com/llvm/llvm-project/pull/92525
More information about the llvm-commits
mailing list