LLVM  14.0.0git
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/IR/InstIterator.h"
#include "llvm/IR/Instruction.h"
#include "llvm/InitializePasses.h"
#include "llvm/Pass.h"
#include "llvm/Support/DebugCounter.h"
#include "llvm/Transforms/Scalar.h"
#include "llvm/Transforms/Utils/AssumeBundleBuilder.h"
#include "llvm/Transforms/Utils/BasicBlockUtils.h"
#include "llvm/Transforms/Utils/Local.h"
Include dependency graph for DCE.cpp:

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "dce"
 

Functions

 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)
 

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "dce"

Definition at line 33 of file DCE.cpp.

Function Documentation

◆ DCEInstruction()

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

◆ DEBUG_COUNTER()

DEBUG_COUNTER ( DCECounter  ,
"dce-transform ,
"Controls which instructions are eliminated"   
)

◆ eliminateDeadCode()

static bool eliminateDeadCode ( Function F,
TargetLibraryInfo TLI 
)
static

◆ INITIALIZE_PASS()

INITIALIZE_PASS ( RedundantDbgInstElimination  ,
"redundant-dbg-inst-elim"  ,
"Redundant Dbg Instruction Elimination ,
false  ,
false   
)

Definition at line 65 of file DCE.cpp.

◆ STATISTIC()

STATISTIC ( DCEEliminated  ,
"Number of insts removed  
)