24 #define DEBUG_TYPE "gi-combiner" 29 : CInfo(Info), TPC(TPC) {
47 bool MFChanged =
false;
59 for (
auto MII = MBB->rbegin(), MIE = MBB->rend(); MII != MIE;) {
72 while (!WorkList.
empty()) {
Compute iterated dominance frontiers using a linear time algorithm.
const MachineFunctionProperties & getProperties() const
Get the function properties.
Combiner(CombinerInfo &CombinerInfo, const TargetPassConfig *TPC)
void setMF(MachineFunction &)
Target-Independent Code Generator Pass Configuration Options.
void eraseFromParentAndMarkDBGValuesForRemoval()
Unlink 'this' from the containing basic block and delete it.
StringRef getName() const
getName - Return the name of the corresponding LLVM function.
iterator_range< po_iterator< T > > post_order(const T &G)
bool combineMachineInstrs(MachineFunction &MF)
MachineInstr * pop_back_val()
void insert(MachineInstr *I)
Add - Add the specified instruction to the worklist if it isn't already in it.
This file declares the MachineIRBuilder class.
raw_ostream & dbgs()
dbgs() - This returns a reference to a raw_ostream for debugging messages.
MachineRegisterInfo * MRI
bool isTriviallyDead(const MachineInstr &MI, const MachineRegisterInfo &MRI)
Check whether an instruction MI is dead: it only defines dead virtual registers, and doesn't have oth...
Representation of each machine instruction.
MachineRegisterInfo & getRegInfo()
getRegInfo - Return information about the registers currently in use.
bool hasProperty(Property P) const
virtual bool combine(MachineInstr &MI, MachineIRBuilder &B) const =0