LLVM 20.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 *Walker, BatchAAResults *BAA, DominatorTree *DT)
 
void optimizeUses ()
 Optimize uses to point to their actual clobbering definitions.
 

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

Constructor & Destructor Documentation

◆ OptimizeUses()

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

Definition at line 1306 of file MemorySSA.cpp.

Member Function Documentation

◆ optimizeUses()

void MemorySSA::OptimizeUses::optimizeUses ( )

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