LLVM  3.7.0
Macros | Functions | Variables
DeadMachineInstructionElim.cpp File Reference
#include "llvm/CodeGen/Passes.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/CodeGen/MachineFunctionPass.h"
#include "llvm/CodeGen/MachineRegisterInfo.h"
#include "llvm/Pass.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/Target/TargetInstrInfo.h"
#include "llvm/Target/TargetSubtargetInfo.h"
Include dependency graph for DeadMachineInstructionElim.cpp:

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "codegen-dce"
 

Functions

 STATISTIC (NumDeletes,"Number of dead instructions deleted")
 
INITIALIZE_PASS(DeadMachineInstructionElim,"dead-mi-elimination","Remove
dead machine instructions",
false, false) bool
DeadMachineInstructionElim 
if (MI->getOpcode()==TargetOpcode::LOCAL_ESCAPE) return false
 
 if (!MI->isSafeToMove(nullptr, SawStore)&&!MI->isPHI()) return false
 
 for (unsigned i=0, e=MI->getNumOperands();i!=e;++i)
 

Variables

bool SawStore = false
 
return true
 

Macro Definition Documentation

#define DEBUG_TYPE   "codegen-dce"

Definition at line 26 of file DeadMachineInstructionElim.cpp.

Function Documentation

for ( unsigned  i = 0,
= MI->getNumOperands(); i != e; ++i 
)
INITIALIZE_PASS (DeadMachineInstructionElim, "dead-mi-elimination", "Remove dead machine instructions", false, false) bool DeadMachineInstructionElim if ( MI->  getOpcode() = =TargetOpcode::LOCAL_ESCAPE)
if ( !MI->  isSafeToMovenullptr, SawStore)&&!MI->isPHI()
STATISTIC ( NumDeletes  ,
"Number of dead instructions deleted"   
)

Variable Documentation

bool SawStore = false
return true

Definition at line 89 of file DeadMachineInstructionElim.cpp.