llvm::ADCEPass

A DCE pass that assumes instructions are dead until proven otherwise.

Synopsis

Declared in <llvm/Transforms/Scalar/ADCE.h>

struct ADCEPass
    : OptionalPassInfoMixin<ADCEPass>

Description

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.

Base Classes

NameDescription
OptionalPassInfoMixin<ADCEPass>A CRTP mix-in for passes that can be skipped.

Member Functions

NameDescription
run Run aggressive dead code elimination over the function.

Static Member Functions

NameDescription
isRequired Return false; optional passes may be skipped.