LLVM 20.0.0git
|
This class is a batch walker of all MemoryUse's in the program, and points their defining access at the thing that actually clobbers them. More...
Public Member Functions | |
OptimizeUses (MemorySSA *MSSA, CachingWalker *Walker, BatchAAResults *BAA, DominatorTree *DT) | |
void | optimizeUses () |
Optimize uses to point to their actual clobbering definitions. | |
This class is a batch walker of all MemoryUse's in the program, and points their defining access at the thing that actually clobbers them.
Because it is a batch walker that touches everything, it does not operate like the other walkers. This walker is basically performing a top-down SSA renaming pass, where the version stack is used as the cache. This enables it to be significantly more time and memory efficient than using the regular walker, which is walking bottom-up.
Definition at line 1304 of file MemorySSA.cpp.
|
inline |
Definition at line 1306 of file MemorySSA.cpp.
void MemorySSA::OptimizeUses::optimizeUses | ( | ) |
Optimize uses to point to their actual clobbering definitions.
Definition at line 1492 of file MemorySSA.cpp.
References llvm::depth_first(), llvm::MemorySSA::getLiveOnEntryDef(), llvm::DominatorTreeBase< NodeT, IsPostDom >::getRootNode(), and llvm::SmallVectorTemplateBase< T, bool >::push_back().
Referenced by llvm::MemorySSA::ensureOptimizedUses().