aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAlkis Evlogimenos <alkis@evlogimenos.com>2003-12-13 05:48:57 +0000
committerAlkis Evlogimenos <alkis@evlogimenos.com>2003-12-13 05:48:57 +0000
commitf6e610c27dcc681a427862a8bcd63908eb31fa3c (patch)
tree5c6079fe6363f74921084e9ba13e8925660b3d79 /lib
parent359b65f782cc323daba4f8c5c21c70a98c9d40ea (diff)
downloadexternal_llvm-f6e610c27dcc681a427862a8bcd63908eb31fa3c.zip
external_llvm-f6e610c27dcc681a427862a8bcd63908eb31fa3c.tar.gz
external_llvm-f6e610c27dcc681a427862a8bcd63908eb31fa3c.tar.bz2
Add instruction numbers to debugging output.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10447 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/CodeGen/RegAllocLinearScan.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/CodeGen/RegAllocLinearScan.cpp b/lib/CodeGen/RegAllocLinearScan.cpp
index dff2741..a50574c 100644
--- a/lib/CodeGen/RegAllocLinearScan.cpp
+++ b/lib/CodeGen/RegAllocLinearScan.cpp
@@ -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());