class MemorySSA::OptimizeUses

Declaration

class MemorySSA::OptimizeUses { /* full declaration omitted */ };

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.

Declared at: llvm/lib/Analysis/MemorySSA.cpp:1275

Method Overview

  • public OptimizeUses(llvm::MemorySSA * MSSA, CachingWalker<llvm::BatchAAResults> * Walker, llvm::BatchAAResults * BAA, llvm::DominatorTree * DT)
  • public void optimizeUses()

Methods

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

Declared at: llvm/lib/Analysis/MemorySSA.cpp:1277

Parameters

llvm::MemorySSA* MSSA
CachingWalker<llvm::BatchAAResults>* Walker
llvm::BatchAAResults* BAA
llvm::DominatorTree* DT

void optimizeUses()

Description

Optimize uses to point to their actual clobbering definitions.

Declared at: llvm/lib/Analysis/MemorySSA.cpp:1281