LLVM 22.0.0git
ADCE.cpp File Reference

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "adce"

Functions

 STATISTIC (NumRemoved, "Number of instructions removed")
 STATISTIC (NumBranchesRemoved, "Number of branch instructions removed")
static bool isUnconditionalBranch (Instruction *Term)

Variables

static cl::opt< boolRemoveControlFlowFlag ("adce-remove-control-flow", cl::init(true), cl::Hidden)
static cl::opt< boolRemoveLoops ("adce-remove-loops", cl::init(false), cl::Hidden)

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "adce"

Definition at line 58 of file ADCE.cpp.

Function Documentation

◆ isUnconditionalBranch()

bool isUnconditionalBranch ( Instruction * Term)
static

Definition at line 215 of file ADCE.cpp.

References llvm::dyn_cast().

◆ STATISTIC() [1/2]

STATISTIC ( NumBranchesRemoved ,
"Number of branch instructions removed"  )

◆ STATISTIC() [2/2]

STATISTIC ( NumRemoved ,
"Number of instructions removed"  )

Variable Documentation

◆ RemoveControlFlowFlag

cl::opt< bool > RemoveControlFlowFlag("adce-remove-control-flow", cl::init(true), cl::Hidden) ( "adce-remove-control-flow" ,
cl::init(true) ,
cl::Hidden  )
static

◆ RemoveLoops

cl::opt< bool > RemoveLoops("adce-remove-loops", cl::init(false), cl::Hidden) ( "adce-remove-loops" ,
cl::init(false) ,
cl::Hidden  )
static