A DCE pass that assumes instructions are dead until proven otherwise.
Declared in <llvm/Transforms/Scalar/ADCE.h>
struct ADCEPass
: OptionalPassInfoMixin<ADCEPass>
This pass eliminates dead code by optimistically assuming that all instructions are dead until proven otherwise. This allows it to eliminate dead computations that other DCE passes do not catch, particularly involving loop computations.
| Name | Description |
|---|---|
OptionalPassInfoMixin<ADCEPass> | A CRTP mix-in for passes that can be skipped. |
| Name | Description |
|---|---|
run | Run aggressive dead code elimination over the function. |
| Name | Description |
|---|---|
isRequired | Return false; optional passes may be skipped. |