[llvm] [VPlan] Use DomTreeUpdater to automatically update DT for vector loop. (PR #92525)
via llvm-commits
llvm-commits at lists.llvm.org
Thu May 23 13:30:04 PDT 2024
================
@@ -891,13 +899,9 @@ void VPlan::execute(VPTransformState *State) {
}
}
- // We do not attempt to preserve DT for outer loop vectorization currently.
- if (!EnableVPlanNativePath) {
- BasicBlock *VectorHeaderBB = State->CFG.VPBB2IRBB[Header];
- State->DT->addNewBlock(VectorHeaderBB, VectorPreHeader);
- updateDominatorTree(State->DT, VectorHeaderBB, VectorLatchBB,
- State->CFG.ExitBB);
- }
+ State->CFG.DTU.flush();
+ assert(EnableVPlanNativePath || State->CFG.DTU.getDomTree().verify(
+ DominatorTree::VerificationLevel::Fast));
----------------
ayalz wrote:
```suggestion
// DT is currently updated for non-native path only.
assert(EnableVPlanNativePath || State->CFG.DTU.getDomTree().verify(
DominatorTree::VerificationLevel::Fast));
```
(retaining the comment)
https://github.com/llvm/llvm-project/pull/92525
More information about the llvm-commits
mailing list