mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-08 19:25:47 +00:00
Improve debugging output.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10834 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -251,7 +251,7 @@ bool RA::runOnMachineFunction(MachineFunction &fn) {
|
|||||||
fixed_.erase(fixed_.begin());
|
fixed_.erase(fixed_.begin());
|
||||||
}
|
}
|
||||||
|
|
||||||
DEBUG(std::cerr << "processing current interval: " << *cur << '\n');
|
DEBUG(std::cerr << *cur << '\n');
|
||||||
|
|
||||||
processActiveIntervals(cur);
|
processActiveIntervals(cur);
|
||||||
processInactiveIntervals(cur);
|
processInactiveIntervals(cur);
|
||||||
@@ -571,10 +571,11 @@ void RA::assignStackSlotAtInterval(IntervalPtrs::value_type cur)
|
|||||||
|
|
||||||
if (cur->weight < minWeight) {
|
if (cur->weight < minWeight) {
|
||||||
restoreRegUse();
|
restoreRegUse();
|
||||||
DEBUG(std::cerr << "\t\t\t\tspilling : " << *cur << '\n');
|
DEBUG(std::cerr << "\t\t\t\tspilling: " << *cur << '\n');
|
||||||
assignVirt2StackSlot(cur->reg);
|
assignVirt2StackSlot(cur->reg);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
DEBUG(std::cerr << "\t\t\t\tfreeing: " << mri_->getName(minReg) << '\n');
|
||||||
std::set<unsigned> toSpill;
|
std::set<unsigned> toSpill;
|
||||||
toSpill.insert(minReg);
|
toSpill.insert(minReg);
|
||||||
for (const unsigned* as = mri_->getAliasSet(minReg); *as; ++as)
|
for (const unsigned* as = mri_->getAliasSet(minReg); *as; ++as)
|
||||||
|
Reference in New Issue
Block a user