30 #define DEBUG_TYPE "ppc-pre-emit-peephole" 33 "Number of r+r instructions converted to r+i in pre-emit peephole");
35 "Number of instructions deleted in pre-emit peephole");
39 cl::desc(
"Run pre-emit peephole optimizations."));
69 NumRRConvertedInPreEmit++;
79 LLVM_DEBUG(
dbgs() <<
"PPC pre-emit peephole: erasing instruction: ");
81 MI->eraseFromParent();
82 NumRemovedInPreEmit++;
91 char PPCPreEmitPeephole::ID = 0;
94 return new PPCPreEmitPeephole();
void push_back(const T &Elt)
static PassRegistry * getPassRegistry()
getPassRegistry - Access the global registry object, which is automatically initialized at applicatio...
Compute iterated dominance frontiers using a linear time algorithm.
STATISTIC(NumFunctions, "Total number of functions")
MachineFunctionPass - This class adapts the FunctionPass interface to allow convenient creation of pa...
const HexagonInstrInfo * TII
initializer< Ty > init(const Ty &Val)
const TargetSubtargetInfo & getSubtarget() const
getSubtarget - Return the subtarget for which this machine code is being compiled.
void getAnalysisUsage(AnalysisUsage &AU) const override
getAnalysisUsage - Subclasses that override getAnalysisUsage must call this.
Represent the analysis usage information of a pass.
FunctionPass class - This class is used to implement most global optimizations.
This file implements the LivePhysRegs utility for tracking liveness of physical registers.
#define INITIALIZE_PASS(passName, arg, name, cfg, analysis)
const Function & getFunction() const
Return the LLVM function that this machine code represents.
raw_ostream & dbgs()
dbgs() - This returns a reference to a raw_ostream for debugging messages.
MachineFunctionProperties & set(Property P)
Representation of each machine instruction.
void initializePPCPreEmitPeepholePass(PassRegistry &)
FunctionPass * createPPCPreEmitPeepholePass()
static cl::opt< bool > RunPreEmitPeephole("ppc-late-peephole", cl::Hidden, cl::init(true), cl::desc("Run pre-emit peephole optimizations."))
bool convertToImmediateForm(MachineInstr &MI, MachineInstr **KilledDef=nullptr) const
Properties which a MachineFunction may have at a given point in time.