[llvm] [VPlan] Use DomTreeUpdater to automatically update DT for vector loop. (PR #92525)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Thu May 23 13:14:24 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}});
----------------
fhahn wrote:
Yes, updated to remove the edge before
https://github.com/llvm/llvm-project/pull/92525
More information about the llvm-commits
mailing list