Go to the source code of this file.
|
| STATISTIC (DCEEliminated, "Number of insts removed") |
|
| DEBUG_COUNTER (DCECounter, "dce-transform", "Controls which instructions are eliminated") |
|
| INITIALIZE_PASS (RedundantDbgInstElimination, "redundant-dbg-inst-elim", "Redundant Dbg Instruction Elimination", false, false) Pass *llvm |
|
static bool | DCEInstruction (Instruction *I, SmallSetVector< Instruction *, 16 > &WorkList, const TargetLibraryInfo *TLI) |
|
static bool | eliminateDeadCode (Function &F, TargetLibraryInfo *TLI) |
|
◆ DEBUG_TYPE
◆ DCEInstruction()
◆ DEBUG_COUNTER()
DEBUG_COUNTER |
( |
DCECounter |
, |
|
|
"dce-transform" |
, |
|
|
"Controls which instructions are eliminated" |
|
|
) |
| |
◆ eliminateDeadCode()
Definition at line 122 of file DCE.cpp.
References llvm::SetVector< T, Vector, Set >::count(), DCEInstruction(), llvm::SetVector< T, Vector, Set >::empty(), F, I, instructions, llvm::make_early_inc_range(), and llvm::SetVector< T, Vector, Set >::pop_back_val().
◆ INITIALIZE_PASS()
INITIALIZE_PASS |
( |
RedundantDbgInstElimination |
, |
|
|
"redundant-dbg-inst-elim" |
, |
|
|
"Redundant Dbg Instruction Elimination" |
, |
|
|
false |
, |
|
|
false |
|
|
) |
| |
◆ STATISTIC()
STATISTIC |
( |
DCEEliminated |
, |
|
|
"Number of insts removed" |
|
|
) |
| |