38 RE = MRI.
reg_end(); RI != RE; ++RI) {
41 DefUsesInMBB.
insert(DefUseMI);
45 if (DefUsesInMBB.
empty()) {
47 InsertPoint = MBB->
begin();
48 }
else if (DefUsesInMBB.
size() == 1) {
50 InsertPoint = *DefUsesInMBB.
begin();
54 InsertPoint = MBB->
end();
55 while (!DefUsesInMBB.
count(&*--InsertPoint)) {}
const MachineFunction * getParent() const
iterator getFirstTerminator()
MachineBasicBlock::iterator findPHICopyInsertPoint(MachineBasicBlock *MBB, MachineBasicBlock *SuccMBB, unsigned SrcReg)
bool count(PtrType Ptr) const
count - Return true if the specified pointer is in the set.
const MachineBasicBlock * getParent() const
bundle_iterator< MachineInstr, instr_iterator > iterator
iterator SkipPHIsAndLabels(iterator I)
bool LLVM_ATTRIBUTE_UNUSED_RESULT empty() const
bool isLandingPad() const
MachineRegisterInfo & getRegInfo()
reg_iterator reg_begin(unsigned RegNo) const
const MCRegisterInfo & MRI
static reg_iterator reg_end()