mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
Skip debug info in a couple of places.
llvm-svn: 95814
This commit is contained in:
parent
b288ec36ae
commit
9d9478a53a
@ -451,11 +451,11 @@ MachineInstr *findOnlyInterestingUse(unsigned Reg, MachineBasicBlock *MBB,
|
||||
const TargetInstrInfo *TII,
|
||||
bool &IsCopy,
|
||||
unsigned &DstReg, bool &IsDstPhys) {
|
||||
MachineRegisterInfo::use_iterator UI = MRI->use_begin(Reg);
|
||||
if (UI == MRI->use_end())
|
||||
MachineRegisterInfo::use_nodbg_iterator UI = MRI->use_nodbg_begin(Reg);
|
||||
if (UI == MRI->use_nodbg_end())
|
||||
return 0;
|
||||
MachineInstr &UseMI = *UI;
|
||||
if (++UI != MRI->use_end())
|
||||
if (++UI != MRI->use_nodbg_end())
|
||||
// More than one use.
|
||||
return 0;
|
||||
if (UseMI.getParent() != MBB)
|
||||
@ -923,6 +923,10 @@ bool TwoAddressInstructionPass::runOnMachineFunction(MachineFunction &MF) {
|
||||
for (MachineBasicBlock::iterator mi = mbbi->begin(), me = mbbi->end();
|
||||
mi != me; ) {
|
||||
MachineBasicBlock::iterator nmi = llvm::next(mi);
|
||||
if (mi->isDebugValue()) {
|
||||
mi = nmi;
|
||||
continue;
|
||||
}
|
||||
const TargetInstrDesc &TID = mi->getDesc();
|
||||
bool FirstTied = true;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user