Lines Matching refs:Reg
90 bool AllUsesDominatedByBlock(unsigned Reg, MachineBasicBlock *MBB,
142 MachineSinking::AllUsesDominatedByBlock(unsigned Reg, in AllUsesDominatedByBlock() argument
147 assert(TargetRegisterInfo::isVirtualRegister(Reg) && in AllUsesDominatedByBlock()
150 if (MRI->use_nodbg_empty(Reg)) in AllUsesDominatedByBlock()
175 I = MRI->use_nodbg_begin(Reg), E = MRI->use_nodbg_end(); in AllUsesDominatedByBlock()
189 I = MRI->use_nodbg_begin(Reg), E = MRI->use_nodbg_end(); in AllUsesDominatedByBlock()
303 unsigned Reg = MO.getReg(); in isWorthBreakingCriticalEdge() local
304 if (Reg == 0 || !TargetRegisterInfo::isPhysicalRegister(Reg)) in isWorthBreakingCriticalEdge()
306 if (MRI->hasOneNonDBGUse(Reg)) in isWorthBreakingCriticalEdge()
418 unsigned Reg = MO.getReg(); in SinkInstruction() local
419 if (Reg == 0) continue; in SinkInstruction()
421 if (TargetRegisterInfo::isPhysicalRegister(Reg)) { in SinkInstruction()
426 if (!MRI->def_empty(Reg)) in SinkInstruction()
429 if (AllocatableSet.test(Reg)) in SinkInstruction()
433 for (const unsigned *Alias = TRI->getAliasSet(Reg); *Alias; ++Alias) { in SinkInstruction()
450 if (!TII->isSafeToMoveRegClassDefs(MRI->getRegClass(Reg))) in SinkInstruction()
472 if (!AllUsesDominatedByBlock(Reg, SuccToSinkTo, ParentBlock, in SinkInstruction()
484 if (AllUsesDominatedByBlock(Reg, *SI, ParentBlock, in SinkInstruction()
520 unsigned Reg = MO.getReg(); in SinkInstruction() local
521 if (Reg == 0 || !TargetRegisterInfo::isPhysicalRegister(Reg)) continue; in SinkInstruction()
522 if (SuccToSinkTo->isLiveIn(Reg)) in SinkInstruction()