aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/RegAllocLinearScan.cpp
diff options
context:
space:
mode:
authorAlkis Evlogimenos <alkis@evlogimenos.com>2003-12-24 18:53:31 +0000
committerAlkis Evlogimenos <alkis@evlogimenos.com>2003-12-24 18:53:31 +0000
commit843397c2372cf5bd5dbd6d6d305b45eb4454b66b (patch)
tree059291be2db36286d722a7801d5f8ec853d9f866 /lib/CodeGen/RegAllocLinearScan.cpp
parent7a40eaaceec0af76d5b97610f3d4e7a47a19d245 (diff)
Improve debugging output when choosing a register to spill.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10604 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/RegAllocLinearScan.cpp')
-rw-r--r--lib/CodeGen/RegAllocLinearScan.cpp11
1 files changed, 3 insertions, 8 deletions
diff --git a/lib/CodeGen/RegAllocLinearScan.cpp b/lib/CodeGen/RegAllocLinearScan.cpp
index 69eca8a18e..a804e1aa86 100644
--- a/lib/CodeGen/RegAllocLinearScan.cpp
+++ b/lib/CodeGen/RegAllocLinearScan.cpp
@@ -552,8 +552,7 @@ void RA::assignStackSlotAtInterval(Intervals::const_iterator cur)
if (cur->weight < minWeight) {
restoreRegUse();
- DEBUG(std::cerr << "\t\t\t\tspilling : " << mri_->getName(minReg)
- << ", weight: " << cur->weight << '\n');
+ DEBUG(std::cerr << "\t\t\t\tspilling : " << *cur << '\n');
assignVirt2StackSlot(cur->reg);
}
else {
@@ -570,9 +569,7 @@ void RA::assignStackSlotAtInterval(Intervals::const_iterator cur)
toSpill.find(v2pMap_[reg]) != toSpill.end() &&
cur->overlaps(**i)) {
spilled.push_back(v2pMap_[reg]);
- DEBUG(std::cerr << "\t\t\t\tspilling : "
- << mri_->getName(minReg) << ", weight: "
- << (*i)->weight << '\n');
+ DEBUG(std::cerr << "\t\t\t\tspilling : " << **i << '\n');
assignVirt2StackSlot(reg);
i = active_.erase(i);
}
@@ -586,9 +583,7 @@ void RA::assignStackSlotAtInterval(Intervals::const_iterator cur)
if (reg >= MRegisterInfo::FirstVirtualRegister &&
toSpill.find(v2pMap_[reg]) != toSpill.end() &&
cur->overlaps(**i)) {
- DEBUG(std::cerr << "\t\t\t\tspilling : "
- << mri_->getName(minReg) << ", weight: "
- << (*i)->weight << '\n');
+ DEBUG(std::cerr << "\t\t\t\tspilling : " << **i << '\n');
assignVirt2StackSlot(reg);
i = inactive_.erase(i);
}