LLVM  14.0.0git
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, CachingWalker< BatchAAResults > *Walker, BatchAAResults *BAA, 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 1316 of file MemorySSA.cpp.

Constructor & Destructor Documentation

◆ OptimizeUses()

llvm::MemorySSA::OptimizeUses::OptimizeUses ( MemorySSA MSSA,
CachingWalker< BatchAAResults > *  Walker,
BatchAAResults BAA,
DominatorTree DT 
)
inline

Definition at line 1318 of file MemorySSA.cpp.

Member Function Documentation

◆ optimizeUses()

void MemorySSA::OptimizeUses::optimizeUses ( )

Optimize uses to point to their actual clobbering definitions.

Definition at line 1515 of file MemorySSA.cpp.

References llvm::depth_first(), llvm::MemorySSA::getLiveOnEntryDef(), and llvm::DominatorTreeBase< NodeT, IsPostDom >::getRootNode().


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