aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/RegAllocLinearScan.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/CodeGen/RegAllocLinearScan.cpp')
-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 dff2741943..a50574c454 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());