diff options
author | paperchalice <liujunchang97@outlook.com> | 2024-07-11 11:08:05 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-11 11:08:05 +0800 |
commit | c5e5088033fed170068d818c54af6862e449b545 (patch) | |
tree | d6a55ba547c8a29981fb179d5680e97da8d53113 /llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp | |
parent | cb3bc5be9c20d893adf94cdf436092657ab5ab40 (diff) | |
download | llvm-c5e5088033fed170068d818c54af6862e449b545.zip llvm-c5e5088033fed170068d818c54af6862e449b545.tar.gz llvm-c5e5088033fed170068d818c54af6862e449b545.tar.bz2 |
[CodeGen] Remove `applySplitCriticalEdges` in `MachineDominatorTree` (#97055)
Summary:
- Remove wrappers in `MachineDominatorTree`.
- Remove `MachineDominatorTree` update code in
`MachineBasicBlock::SplitCriticalEdge`.
- Use `MachineDomTreeUpdater` in passes which call
`MachineBasicBlock::SplitCriticalEdge` and preserve
`MachineDominatorTreeWrapperPass` or CFG analyses.
Commit abea99f65a97248974c02a5544eaf25fc4240056 introduced related
methods in 2014. Now we have SemiNCA based dominator tree in 2017 and
dominator tree updater, the solution adopted here seems a bit outdated.
Diffstat (limited to 'llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp')
-rw-r--r-- | llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp b/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp index 555cbb7..98099ac 100644 --- a/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp +++ b/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp @@ -2754,7 +2754,7 @@ void InstrRefBasedLDV::BlockPHIPlacement( // Apply IDF calculator to the designated set of location defs, storing // required PHIs into PHIBlocks. Uses the dominator tree stored in the // InstrRefBasedLDV object. - IDFCalculatorBase<MachineBasicBlock, false> IDF(DomTree->getBase()); + IDFCalculatorBase<MachineBasicBlock, false> IDF(*DomTree); IDF.setLiveInBlocks(AllBlocks); IDF.setDefiningBlocks(DefBlocks); |