mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-09 13:33:17 +00:00
Add some trace output to TwoAddressInstructionPass.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160380 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
de39671ebb
commit
a532bcec2f
@ -1001,6 +1001,7 @@ TwoAddressInstructionPass::RescheduleMIBelowKill(MachineBasicBlock *MBB,
|
||||
LV->removeVirtualRegisterKilled(Reg, KillMI);
|
||||
LV->addVirtualRegisterKilled(Reg, MI);
|
||||
|
||||
DEBUG(dbgs() << "\trescheduled below kill: " << *KillMI);
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -1154,6 +1155,7 @@ TwoAddressInstructionPass::RescheduleKillAboveMI(MachineBasicBlock *MBB,
|
||||
LV->removeVirtualRegisterKilled(Reg, KillMI);
|
||||
LV->addVirtualRegisterKilled(Reg, MI);
|
||||
|
||||
DEBUG(dbgs() << "\trescheduled kill: " << *KillMI);
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -1185,7 +1187,8 @@ TryInstructionTransform(MachineBasicBlock::iterator &mi,
|
||||
if (!regBKilled && MI.getOperand(DstIdx).isDead() &&
|
||||
DeleteUnusedInstr(mi, nmi, mbbi, Dist)) {
|
||||
++NumDeletes;
|
||||
return true; // Done with this instruction.
|
||||
DEBUG(dbgs() << "\tdeleted unused instruction.\n");
|
||||
return true; // Done with this instruction."
|
||||
}
|
||||
|
||||
if (TargetRegisterInfo::isVirtualRegister(regA))
|
||||
|
Loading…
x
Reference in New Issue
Block a user