LLVM  7.0.0svn
Macros | Functions
DCE.cpp File Reference
#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/Transforms/Scalar.h"
Include dependency graph for DCE.cpp:

Go to the source code of this file.


#define DEBUG_TYPE   "dce"


 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)

Macro Definition Documentation


#define DEBUG_TYPE   "dce"

Definition at line 30 of file DCE.cpp.

Function Documentation

◆ DCEInstruction()

static bool DCEInstruction ( Instruction I,
SmallSetVector< Instruction *, 16 > &  WorkList,
const TargetLibraryInfo TLI 

◆ eliminateDeadCode()

static bool eliminateDeadCode ( Function F,
TargetLibraryInfo TLI 


INITIALIZE_PASS ( DeadInstElimination  ,
"die"  ,
"Dead Instruction Elimination ,
false  ,

Definition at line 69 of file DCE.cpp.

Referenced by llvm::DCEPass::run().

◆ STATISTIC() [1/2]

STATISTIC ( DIEEliminated  ,
"Number of insts removed by DIE pass  

◆ STATISTIC() [2/2]

STATISTIC ( DCEEliminated  ,
"Number of insts removed"