LLVM  6.0.0svn
Classes | Public Member Functions | List of all members
llvm::MemorySSA::OptimizeUses Class Reference

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, MemorySSAWalker *Walker, AliasAnalysis *AA, DominatorTree *DT)
 
void optimizeUses ()
 Optimize uses to point to their actual clobbering definitions. More...
 

Detailed Description

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 1092 of file MemorySSA.cpp.

Constructor & Destructor Documentation

◆ OptimizeUses()

llvm::MemorySSA::OptimizeUses::OptimizeUses ( MemorySSA MSSA,
MemorySSAWalker Walker,
AliasAnalysis AA,
DominatorTree DT 
)
inline

Member Function Documentation

◆ optimizeUses()

void MemorySSA::OptimizeUses::optimizeUses ( )

The documentation for this class was generated from the following file: