summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/RegAllocLinearScan.cpp
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
commite6dc614c3c2bc1f7d47551181e4c89607bcc6242 (patch)
tree872b431f004b43b0c5e615759e14b9d55da107e7 /llvm/lib/CodeGen/RegAllocLinearScan.cpp
parent904cd6d48cbb78b6c274a99f9281547423dbb3b1 (diff)
downloadbcm5719-llvm-e6dc614c3c2bc1f7d47551181e4c89607bcc6242.tar.gz
bcm5719-llvm-e6dc614c3c2bc1f7d47551181e4c89607bcc6242.zip
Add instruction numbers to debugging output.
llvm-svn: 10447
Diffstat (limited to 'llvm/lib/CodeGen/RegAllocLinearScan.cpp')
-rw-r--r--llvm/lib/CodeGen/RegAllocLinearScan.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/RegAllocLinearScan.cpp b/llvm/lib/CodeGen/RegAllocLinearScan.cpp
index dff27419439..a50574c4546 100644
--- a/llvm/lib/CodeGen/RegAllocLinearScan.cpp
+++ b/llvm/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());
OpenPOWER on IntegriCloud