mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-03 02:08:35 +00:00
[MemorySSA] We don't need to compute dominator levels anymore.
Differential Revision: https://reviews.llvm.org/D31818 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@299893 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
663903f2e8
commit
21197c2fc5
@ -701,7 +701,6 @@ private:
|
||||
|
||||
void
|
||||
determineInsertionPoint(const SmallPtrSetImpl<BasicBlock *> &DefiningBlocks);
|
||||
void computeDomLevels(DenseMap<DomTreeNode *, unsigned> &DomLevels);
|
||||
void markUnreachableAsLiveOnEntry(BasicBlock *BB);
|
||||
bool dominatesUse(const MemoryAccess *, const MemoryAccess *) const;
|
||||
MemoryPhi *createMemoryPhi(BasicBlock *BB);
|
||||
|
@ -976,13 +976,6 @@ void MemorySSA::renamePass(DomTreeNode *Root, MemoryAccess *IncomingVal,
|
||||
}
|
||||
}
|
||||
|
||||
/// \brief Compute dominator levels, used by the phi insertion algorithm above.
|
||||
void MemorySSA::computeDomLevels(DenseMap<DomTreeNode *, unsigned> &DomLevels) {
|
||||
for (auto DFI = df_begin(DT->getRootNode()), DFE = df_end(DT->getRootNode());
|
||||
DFI != DFE; ++DFI)
|
||||
DomLevels[*DFI] = DFI.getPathLength() - 1;
|
||||
}
|
||||
|
||||
/// \brief This handles unreachable block accesses by deleting phi nodes in
|
||||
/// unreachable blocks, and marking all other unreachable MemoryAccess's as
|
||||
/// being uses of the live on entry definition.
|
||||
|
Loading…
Reference in New Issue
Block a user