LLVM  4.0.0
Public Member Functions | Public Attributes | List of all members
llvm::EarlyCSEPass Struct Reference

A simple and fast domtree-based CSE pass. More...

#include <EarlyCSE.h>

Inheritance diagram for llvm::EarlyCSEPass:
[legend]
Collaboration diagram for llvm::EarlyCSEPass:
[legend]

Public Member Functions

 EarlyCSEPass (bool UseMemorySSA=false)
 
PreservedAnalyses run (Function &F, FunctionAnalysisManager &AM)
 Run the pass over the function. More...
 

Public Attributes

bool UseMemorySSA
 

Additional Inherited Members

- Static Public Member Functions inherited from llvm::PassInfoMixin< EarlyCSEPass >
static StringRef name ()
 Gets the name of the pass we are mixed into. More...
 

Detailed Description

A simple and fast domtree-based CSE pass.

This pass does a simple depth-first walk over the dominator tree, eliminating trivially redundant instructions and using instsimplify to canonicalize things as it goes. It is intended to be fast and catch obvious cases so that instcombine and other passes are more effective. It is expected that a later pass of GVN will catch the interesting/hard cases.

Definition at line 29 of file EarlyCSE.h.

Constructor & Destructor Documentation

llvm::EarlyCSEPass::EarlyCSEPass ( bool  UseMemorySSA = false)
inline

Definition at line 30 of file EarlyCSE.h.

Member Function Documentation

PreservedAnalyses EarlyCSEPass::run ( Function F,
FunctionAnalysisManager AM 
)

Member Data Documentation

bool llvm::EarlyCSEPass::UseMemorySSA

Definition at line 35 of file EarlyCSE.h.


The documentation for this struct was generated from the following files: