mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-09 11:25:55 +00:00
Change errs() to dbgs().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92586 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -717,7 +717,7 @@ bool PBQPRegAlloc::mapPBQPToRegAlloc(const PBQP::Solution &solution) {
|
|||||||
// Get the physical reg, subtracting 1 to account for the spill option.
|
// Get the physical reg, subtracting 1 to account for the spill option.
|
||||||
unsigned physReg = allowedSets[node][allocSelection - 1];
|
unsigned physReg = allowedSets[node][allocSelection - 1];
|
||||||
|
|
||||||
DEBUG(errs() << "VREG " << virtReg << " -> "
|
DEBUG(dbgs() << "VREG " << virtReg << " -> "
|
||||||
<< tri->getName(physReg) << "\n");
|
<< tri->getName(physReg) << "\n");
|
||||||
|
|
||||||
assert(physReg != 0);
|
assert(physReg != 0);
|
||||||
@@ -741,7 +741,7 @@ bool PBQPRegAlloc::mapPBQPToRegAlloc(const PBQP::Solution &solution) {
|
|||||||
addStackInterval(spillInterval, mri);
|
addStackInterval(spillInterval, mri);
|
||||||
|
|
||||||
(void) oldSpillWeight;
|
(void) oldSpillWeight;
|
||||||
DEBUG(errs() << "VREG " << virtReg << " -> SPILLED (Cost: "
|
DEBUG(dbgs() << "VREG " << virtReg << " -> SPILLED (Cost: "
|
||||||
<< oldSpillWeight << ", New vregs: ");
|
<< oldSpillWeight << ", New vregs: ");
|
||||||
|
|
||||||
// Copy any newly inserted live intervals into the list of regs to
|
// Copy any newly inserted live intervals into the list of regs to
|
||||||
@@ -752,12 +752,12 @@ bool PBQPRegAlloc::mapPBQPToRegAlloc(const PBQP::Solution &solution) {
|
|||||||
|
|
||||||
assert(!(*itr)->empty() && "Empty spill range.");
|
assert(!(*itr)->empty() && "Empty spill range.");
|
||||||
|
|
||||||
DEBUG(errs() << (*itr)->reg << " ");
|
DEBUG(dbgs() << (*itr)->reg << " ");
|
||||||
|
|
||||||
vregIntervalsToAlloc.insert(*itr);
|
vregIntervalsToAlloc.insert(*itr);
|
||||||
}
|
}
|
||||||
|
|
||||||
DEBUG(errs() << ")\n");
|
DEBUG(dbgs() << ")\n");
|
||||||
|
|
||||||
// We need another round if spill intervals were added.
|
// We need another round if spill intervals were added.
|
||||||
anotherRoundNeeded |= !newSpills.empty();
|
anotherRoundNeeded |= !newSpills.empty();
|
||||||
@@ -849,7 +849,7 @@ bool PBQPRegAlloc::runOnMachineFunction(MachineFunction &MF) {
|
|||||||
|
|
||||||
vrm = &getAnalysis<VirtRegMap>();
|
vrm = &getAnalysis<VirtRegMap>();
|
||||||
|
|
||||||
DEBUG(errs() << "PBQP2 Register Allocating for " << mf->getFunction()->getName() << "\n");
|
DEBUG(dbgs() << "PBQP2 Register Allocating for " << mf->getFunction()->getName() << "\n");
|
||||||
|
|
||||||
// Allocator main loop:
|
// Allocator main loop:
|
||||||
//
|
//
|
||||||
@@ -874,7 +874,7 @@ bool PBQPRegAlloc::runOnMachineFunction(MachineFunction &MF) {
|
|||||||
unsigned round = 0;
|
unsigned round = 0;
|
||||||
|
|
||||||
while (!pbqpAllocComplete) {
|
while (!pbqpAllocComplete) {
|
||||||
DEBUG(errs() << " PBQP Regalloc round " << round << ":\n");
|
DEBUG(dbgs() << " PBQP Regalloc round " << round << ":\n");
|
||||||
|
|
||||||
PBQP::SimpleGraph problem = constructPBQPProblem();
|
PBQP::SimpleGraph problem = constructPBQPProblem();
|
||||||
PBQP::HeuristicSolver<PBQP::Heuristics::Briggs> solver;
|
PBQP::HeuristicSolver<PBQP::Heuristics::Briggs> solver;
|
||||||
@@ -896,7 +896,7 @@ bool PBQPRegAlloc::runOnMachineFunction(MachineFunction &MF) {
|
|||||||
node2LI.clear();
|
node2LI.clear();
|
||||||
allowedSets.clear();
|
allowedSets.clear();
|
||||||
|
|
||||||
DEBUG(errs() << "Post alloc VirtRegMap:\n" << *vrm << "\n");
|
DEBUG(dbgs() << "Post alloc VirtRegMap:\n" << *vrm << "\n");
|
||||||
|
|
||||||
// Run rewriter
|
// Run rewriter
|
||||||
std::auto_ptr<VirtRegRewriter> rewriter(createVirtRegRewriter());
|
std::auto_ptr<VirtRegRewriter> rewriter(createVirtRegRewriter());
|
||||||
|
Reference in New Issue
Block a user