summaryrefslogtreecommitdiffstats
path: root/llvm/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
commita0865cec3f9bc808fb74a4bbd9ce4c409f44a632 (patch)
tree9413c810f9c0214d89712b3b311cbe5d4e83b7f6 /llvm/lib/CodeGen/RegAllocLinearScan.cpp
parent0431621429b36220f275c30363950c735268942b (diff)
downloadbcm5719-llvm-a0865cec3f9bc808fb74a4bbd9ce4c409f44a632.tar.gz
bcm5719-llvm-a0865cec3f9bc808fb74a4bbd9ce4c409f44a632.zip
Improve debugging output.
llvm-svn: 10834
Diffstat (limited to 'llvm/lib/CodeGen/RegAllocLinearScan.cpp')
-rw-r--r--llvm/lib/CodeGen/RegAllocLinearScan.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/RegAllocLinearScan.cpp b/llvm/lib/CodeGen/RegAllocLinearScan.cpp
index e98dfe9f3df..a88c55dd527 100644
--- a/llvm/lib/CodeGen/RegAllocLinearScan.cpp
+++ b/llvm/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)
OpenPOWER on IntegriCloud