Go to the source code of this file.
|
| | STATISTIC (DIEEliminated,"Number of insts removed by DIE pass") |
| |
| | STATISTIC (DCEEliminated,"Number of insts removed") |
| |
| | INITIALIZE_PASS (DeadInstElimination,"die","Dead 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) |
| |
Definition at line 75 of file DCE.cpp.
References llvm::Instruction::eraseFromParent(), llvm::User::getNumOperands(), llvm::User::getOperand(), i, llvm::SetVector< T, SmallVector< T, N >, SmallDenseSet< T, N > >::insert(), llvm::isInstructionTriviallyDead(), llvm::User::setOperand(), and llvm::Value::use_empty().
Referenced by eliminateDeadCode().
Definition at line 103 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(), I, llvm::inst_begin(), llvm::inst_end(), and llvm::SetVector< T, SmallVector< T, N >, SmallDenseSet< T, N > >::pop_back_val().
Referenced by llvm::DCEPass::run().
| STATISTIC |
( |
DIEEliminated |
, |
|
|
"Number of insts removed by DIE pass" |
|
|
) |
| |
| STATISTIC |
( |
DCEEliminated |
, |
|
|
"Number of insts removed" |
|
|
) |
| |