LLVM API Documentation
#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/TargetMachine.h"
Go to the source code of this file.
Macros | |
| #define | DEBUG_TYPE "codegen-dce" |
Functions | |
| STATISTIC (NumDeletes,"Number of dead instructions deleted") | |
| if (!MI->isSafeToMove(TII, 0, SawStore)&&!MI->isPHI()) return false | |
| for (unsigned i=0, e=MI->getNumOperands();i!=e;++i) | |
Variables | |
| INITIALIZE_PASS(DeadMachineInstructionElim,"dead-mi-elimination","Remove dead machine instructions", false, false) bool DeadMachineInstructionElim bool | SawStore = false |
| return | true |
| #define DEBUG_TYPE "codegen-dce" |
Definition at line 14 of file DeadMachineInstructionElim.cpp.
| for | ( | unsigned | i = 0, |
| e | = MI->getNumOperands(); i != e; ++i |
||
| ) |
Definition at line 66 of file DeadMachineInstructionElim.cpp.
References llvm::MachineOperand::getReg(), llvm::MachineOperand::isDef(), llvm::TargetRegisterInfo::isPhysicalRegister(), llvm::MachineOperand::isReg(), and MRI.
Referenced by llvm::SpecificBumpPtrAllocator< T >::DestroyAll(), llvm::DwarfUnits::emitAddresses(), llvm::DwarfDebug::endModule(), firstch(), freeset(), freezeset(), llvm::TargetLowering::getMultipleConstraintMatchWeight(), isProfitableChain(), llvm::LiveRange::join(), nch(), llvm::BitVector::operator&=(), llvm::LiveIntervals::repairIntervalsInRange(), llvm::AssemblyWriter::writeAllAttributeGroups(), llvm::MachineConstantPool::~MachineConstantPool(), and llvm::RecordKeeper::~RecordKeeper().
| if | ( | !MI-> | isSafeToMoveTII, 0, SawStore)&&!MI->isPHI( | ) |
| STATISTIC | ( | NumDeletes | , |
| "Number of dead instructions deleted" | |||
| ) |
| INITIALIZE_PASS (DeadMachineInstructionElim, "dead-mi-elimination", "Remove dead machine instructions", false, false) bool DeadMachineInstructionElim bool SawStore = false |
Definition at line 61 of file DeadMachineInstructionElim.cpp.
Referenced by llvm::MachineInstr::isSafeToMove(), MaySpeculate(), and llvm::X86InstrInfo::optimizeLoadInstr().
| return true |
Definition at line 83 of file DeadMachineInstructionElim.cpp.