1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 19:42:54 +02:00

Add instruction numbers to debugging output.

llvm-svn: 10447
This commit is contained in:
Alkis Evlogimenos 2003-12-13 05:48:57 +00:00
parent 5ca15c8f5e
commit 225fc9c6db

View File

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