Add instruction numbers to debugging output.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10447 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Alkis Evlogimenos 2003-12-13 05:48:57 +00:00
parent 359b65f782
commit f6e610c27d

View File

@ -203,6 +203,7 @@ bool RA::runOnMachineFunction(MachineFunction &fn) {
v2ssMap_.clear(); v2ssMap_.clear();
DEBUG( DEBUG(
unsigned i = 0;
for (MachineBasicBlockPtrs::iterator for (MachineBasicBlockPtrs::iterator
mbbi = mbbs_.begin(), mbbe = mbbs_.end(); mbbi = mbbs_.begin(), mbbe = mbbs_.end();
mbbi != mbbe; ++mbbi) { mbbi != mbbe; ++mbbi) {
@ -213,7 +214,7 @@ bool RA::runOnMachineFunction(MachineFunction &fn) {
ii != ie; ++ii) { ii != ie; ++ii) {
MachineInstr* instr = *ii; MachineInstr* instr = *ii;
std::cerr << "\t"; std::cerr << i++ << "\t";
instr->print(std::cerr, *tm_); instr->print(std::cerr, *tm_);
} }
} }
@ -268,6 +269,7 @@ bool RA::runOnMachineFunction(MachineFunction &fn) {
} }
} }
} }
DEBUG(std::cerr << "finished register allocation\n"); DEBUG(std::cerr << "finished register allocation\n");
DEBUG(printVirt2PhysMap()); DEBUG(printVirt2PhysMap());