|
LLVM
8.0.1
|
#include "llvm/Transforms/Scalar/DCE.h"#include "llvm/ADT/SetVector.h"#include "llvm/ADT/Statistic.h"#include "llvm/Analysis/TargetLibraryInfo.h"#include "llvm/Transforms/Utils/Local.h"#include "llvm/IR/InstIterator.h"#include "llvm/IR/Instruction.h"#include "llvm/Pass.h"#include "llvm/Support/DebugCounter.h"#include "llvm/Transforms/Scalar.h"
Go to the source code of this file.
Macros | |
| #define | DEBUG_TYPE "dce" |
Functions | |
| STATISTIC (DIEEliminated, "Number of insts removed by DIE pass") | |
| STATISTIC (DCEEliminated, "Number of insts removed") | |
| DEBUG_COUNTER (DCECounter, "dce-transform", "Controls which instructions are eliminated") | |
| 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) |
|
static |
Definition at line 81 of file DCE.cpp.
References llvm::Instruction::eraseFromParent(), llvm::User::getNumOperands(), llvm::User::getOperand(), llvm::SetVector< T, SmallVector< T, N >, SmallDenseSet< T, N > >::insert(), llvm::isInstructionTriviallyDead(), llvm::salvageDebugInfo(), llvm::User::setOperand(), llvm::DebugCounter::shouldExecute(), and llvm::Value::use_empty().
Referenced by eliminateDeadCode().
| DEBUG_COUNTER | ( | DCECounter | , |
| "dce-transform" | , | ||
| "Controls which instructions are eliminated" | |||
| ) |
|
static |
Definition at line 114 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().
| INITIALIZE_PASS | ( | DeadInstElimination | , |
| "die" | , | ||
| "Dead Instruction Elimination" | , | ||
| false | , | ||
| false | |||
| ) |
Definition at line 74 of file DCE.cpp.
Referenced by llvm::DCEPass::run().
| STATISTIC | ( | DCEEliminated | , |
| "Number of insts removed" | |||
| ) |
1.8.13