aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/RegAllocLinearScan.cpp
diff options
context:
space:
mode:
authorAlkis Evlogimenos <alkis@evlogimenos.com>2004-01-14 00:09:36 +0000
committerAlkis Evlogimenos <alkis@evlogimenos.com>2004-01-14 00:09:36 +0000
commit5ab20273a4cc08f3d2451e97a74e6caad50a7efd (patch)
tree2e8d0a5b8d2cec03c1f0cf8f3a36f7f604e3efaf /lib/CodeGen/RegAllocLinearScan.cpp
parentaf25473d5e99e0c0968746e12d8827e4b712bd31 (diff)
downloadexternal_llvm-5ab20273a4cc08f3d2451e97a74e6caad50a7efd.zip
external_llvm-5ab20273a4cc08f3d2451e97a74e6caad50a7efd.tar.gz
external_llvm-5ab20273a4cc08f3d2451e97a74e6caad50a7efd.tar.bz2
Improve debugging output.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10834 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/RegAllocLinearScan.cpp')
-rw-r--r--lib/CodeGen/RegAllocLinearScan.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/CodeGen/RegAllocLinearScan.cpp b/lib/CodeGen/RegAllocLinearScan.cpp
index e98dfe9..a88c55d 100644
--- a/lib/CodeGen/RegAllocLinearScan.cpp
+++ b/lib/CodeGen/RegAllocLinearScan.cpp
@@ -251,7 +251,7 @@ bool RA::runOnMachineFunction(MachineFunction &fn) {
fixed_.erase(fixed_.begin());
}
- DEBUG(std::cerr << "processing current interval: " << *cur << '\n');
+ DEBUG(std::cerr << *cur << '\n');
processActiveIntervals(cur);
processInactiveIntervals(cur);
@@ -571,10 +571,11 @@ void RA::assignStackSlotAtInterval(IntervalPtrs::value_type cur)
if (cur->weight < minWeight) {
restoreRegUse();
- DEBUG(std::cerr << "\t\t\t\tspilling : " << *cur << '\n');
+ DEBUG(std::cerr << "\t\t\t\tspilling: " << *cur << '\n');
assignVirt2StackSlot(cur->reg);
}
else {
+ DEBUG(std::cerr << "\t\t\t\tfreeing: " << mri_->getName(minReg) << '\n');
std::set<unsigned> toSpill;
toSpill.insert(minReg);
for (const unsigned* as = mri_->getAliasSet(minReg); *as; ++as)