[llvm-commits] CVS: llvm/lib/CodeGen/RegAllocLinearScan.cpp
Alkis Evlogimenos
alkis at cs.uiuc.edu
Fri Dec 12 23:50:01 PST 2003
Changes in directory llvm/lib/CodeGen:
RegAllocLinearScan.cpp updated: 1.6 -> 1.7
---
Log message:
Add instruction numbers to debugging output.
---
Diffs of the changes: (+3 -1)
Index: llvm/lib/CodeGen/RegAllocLinearScan.cpp
diff -u llvm/lib/CodeGen/RegAllocLinearScan.cpp:1.6 llvm/lib/CodeGen/RegAllocLinearScan.cpp:1.7
--- llvm/lib/CodeGen/RegAllocLinearScan.cpp:1.6 Fri Dec 5 05:17:55 2003
+++ llvm/lib/CodeGen/RegAllocLinearScan.cpp Fri Dec 12 23:48:57 2003
@@ -203,6 +203,7 @@
v2ssMap_.clear();
DEBUG(
+ unsigned i = 0;
for (MachineBasicBlockPtrs::iterator
mbbi = mbbs_.begin(), mbbe = mbbs_.end();
mbbi != mbbe; ++mbbi) {
@@ -213,7 +214,7 @@
ii != ie; ++ii) {
MachineInstr* instr = *ii;
- std::cerr << "\t";
+ std::cerr << i++ << "\t";
instr->print(std::cerr, *tm_);
}
}
@@ -268,6 +269,7 @@
}
}
}
+
DEBUG(std::cerr << "finished register allocation\n");
DEBUG(printVirt2PhysMap());
More information about the llvm-commits
mailing list