diff options
author | Alkis Evlogimenos <alkis@evlogimenos.com> | 2004-01-13 21:53:20 +0000 |
---|---|---|
committer | Alkis Evlogimenos <alkis@evlogimenos.com> | 2004-01-13 21:53:20 +0000 |
commit | 13e8623a3f8589e90ff512c0e87de0cf2a915254 (patch) | |
tree | 97146e4603f2fda95e222a6959849340395b8ef9 /llvm/lib/CodeGen/LiveIntervals.cpp | |
parent | 66f33ff6c23d11c6f1264201f0d07d988547c1af (diff) | |
download | bcm5719-llvm-13e8623a3f8589e90ff512c0e87de0cf2a915254.tar.gz bcm5719-llvm-13e8623a3f8589e90ff512c0e87de0cf2a915254.zip |
Cleanup debugging output.
llvm-svn: 10824
Diffstat (limited to 'llvm/lib/CodeGen/LiveIntervals.cpp')
-rw-r--r-- | llvm/lib/CodeGen/LiveIntervals.cpp | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/llvm/lib/CodeGen/LiveIntervals.cpp b/llvm/lib/CodeGen/LiveIntervals.cpp index cab3bd6b4a1..bbc708238ac 100644 --- a/llvm/lib/CodeGen/LiveIntervals.cpp +++ b/llvm/lib/CodeGen/LiveIntervals.cpp @@ -149,7 +149,7 @@ void LiveIntervals::handleVirtualRegisterDef(MachineBasicBlock* mbb, MachineBasicBlock::iterator mi, unsigned reg) { - DEBUG(std::cerr << "\t\t\tregister: ";printRegName(reg); std::cerr << '\n'); + DEBUG(std::cerr << "\t\tregister: ";printRegName(reg); std::cerr << '\n'); unsigned instrIndex = getInstructionIndex(*mi); @@ -206,9 +206,9 @@ void LiveIntervals::handlePhysicalRegisterDef(MachineBasicBlock* mbb, MachineBasicBlock::iterator mi, unsigned reg) { - DEBUG(std::cerr << "\t\t\tregister: ";printRegName(reg); std::cerr << '\n'); + DEBUG(std::cerr << "\t\tregister: ";printRegName(reg); std::cerr << '\n'); if (!lv_->getAllocatablePhysicalRegisters()[reg]) { - DEBUG(std::cerr << "\t\t\t\tnon allocatable register: ignoring\n"); + DEBUG(std::cerr << "\t\t\tnon allocatable register: ignoring\n"); return; } @@ -297,8 +297,7 @@ void LiveIntervals::computeIntervals() MachineInstr* instr = *mi; const TargetInstrDescriptor& tid = tm_->getInstrInfo().get(instr->getOpcode()); - DEBUG(std::cerr << "\t\tinstruction[" - << getInstructionIndex(instr) << "]: "; + DEBUG(std::cerr << "\t[" << getInstructionIndex(instr) << "] "; instr->print(std::cerr, *tm_);); // handle implicit defs @@ -334,18 +333,16 @@ LiveIntervals::Interval::Interval(unsigned r) void LiveIntervals::Interval::addRange(unsigned start, unsigned end) { - DEBUG(std::cerr << "\t\t\t\tadding range: [" << start <<','<< end << "]\n"); + DEBUG(std::cerr << "\t\t\tadding range: [" << start <<','<< end << ") -> "); //assert(start < end && "invalid range?"); Range range = std::make_pair(start, end); Ranges::iterator it = ranges.insert(std::upper_bound(ranges.begin(), ranges.end(), range), range); - DEBUG(std::cerr << "\t\t\t\tbefore merge forward: " << *this << '\n'); mergeRangesForward(it); - DEBUG(std::cerr << "\t\t\t\tbefore merge backward: " << *this << '\n'); mergeRangesBackward(it); - DEBUG(std::cerr << "\t\t\t\tafter merging: " << *this << '\n'); + DEBUG(std::cerr << *this << '\n'); } void LiveIntervals::Interval::mergeRangesForward(Ranges::iterator it) |