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()
Definition at line 88 of file DCE.cpp.
References llvm::numbers::e, i, I, llvm::SetVector< T, SmallVector< T, N >, SmallDenseSet< T, N > >::insert(), llvm::isInstructionTriviallyDead(), llvm::salvageDebugInfo(), llvm::salvageKnowledge(), llvm::DebugCounter::shouldExecute(), and llvm::Value::use_empty().
Referenced by eliminateDeadCode().
◆ DEBUG_COUNTER()
◆ eliminateDeadCode()
Definition at line 122 of file DCE.cpp.
References llvm::SetVector< T, SmallVector< T, N >, SmallDenseSet< T, N > >::count(), DCEInstruction(), llvm::SetVector< T, SmallVector< T, N >, SmallDenseSet< T, N > >::empty(), F, I, llvm::instructions(), llvm::make_early_inc_range(), and llvm::SetVector< T, SmallVector< T, N >, SmallDenseSet< T, N > >::pop_back_val().
Referenced by llvm::DCEPass::run().
◆ INITIALIZE_PASS()
◆ STATISTIC()
STATISTIC |
( |
DCEEliminated |
, |
|
|
"Number of insts removed" |
|
|
) |
| |