From e6dc614c3c2bc1f7d47551181e4c89607bcc6242 Mon Sep 17 00:00:00 2001 From: Alkis Evlogimenos Date: Sat, 13 Dec 2003 05:48:57 +0000 Subject: Add instruction numbers to debugging output. llvm-svn: 10447 --- llvm/lib/CodeGen/RegAllocLinearScan.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'llvm/lib/CodeGen/RegAllocLinearScan.cpp') 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()); -- cgit v1.2.3