A simple and fast domtree-based CSE pass.
Declared in <llvm/Transforms/Scalar/EarlyCSE.h>
struct EarlyCSEPass
: OptionalPassInfoMixin<EarlyCSEPass>
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.
| Name | Description |
|---|---|
OptionalPassInfoMixin<EarlyCSEPass> | A CRTP mix-in for passes that can be skipped. |
| Name | Description |
|---|---|
EarlyCSEPass [constructor] | Construct an EarlyCSE pass, optionally using MemorySSA. |
printPipeline | Print this pass's pipeline representation to OS. |
run | Run the pass over the function. |
| Name | Description |
|---|---|
isRequired | Return false; optional passes may be skipped. |
| Name | Description |
|---|---|
UseMemorySSA | Whether this pass should use MemorySSA for CSE of memory operations. |