diff options
| author | Patrik Hägglund <patrik.h.hagglund@ericsson.com> | 2012-05-23 12:12:58 +0000 |
|---|---|---|
| committer | Patrik Hägglund <patrik.h.hagglund@ericsson.com> | 2012-05-23 12:12:58 +0000 |
| commit | 94537c2a063f9fd51476963a48fa7dbd06d319a6 (patch) | |
| tree | 0250aa7ed157bed6f7b74f8e72eb1daaa788f908 /llvm/lib | |
| parent | 8f247016bd268a6da78db6491a2bc76bef01d14c (diff) | |
| download | bcm5719-llvm-94537c2a063f9fd51476963a48fa7dbd06d319a6.tar.gz bcm5719-llvm-94537c2a063f9fd51476963a48fa7dbd06d319a6.zip | |
Small fix for the debug output from PBQP (PR12822).
llvm-svn: 157319
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/CodeGen/RegAllocPBQP.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/RegAllocPBQP.cpp b/llvm/lib/CodeGen/RegAllocPBQP.cpp index 56c7241ef10..cfdfa59d6d4 100644 --- a/llvm/lib/CodeGen/RegAllocPBQP.cpp +++ b/llvm/lib/CodeGen/RegAllocPBQP.cpp @@ -544,7 +544,8 @@ bool RegAllocPBQP::mapPBQPToRegAlloc(const PBQPRAProblem &problem, if (problem.isPRegOption(vreg, alloc)) { unsigned preg = problem.getPRegForOption(vreg, alloc); - DEBUG(dbgs() << "VREG " << vreg << " -> " << tri->getName(preg) << "\n"); + DEBUG(dbgs() << "VREG " << PrintReg(vreg, tri) << " -> " + << tri->getName(preg) << "\n"); assert(preg != 0 && "Invalid preg selected."); vrm->assignVirt2Phys(vreg, preg); } else if (problem.isSpillOption(vreg, alloc)) { @@ -553,7 +554,7 @@ bool RegAllocPBQP::mapPBQPToRegAlloc(const PBQPRAProblem &problem, LiveRangeEdit LRE(&lis->getInterval(vreg), newSpills, *mf, *lis, vrm); spiller->spill(LRE); - DEBUG(dbgs() << "VREG " << vreg << " -> SPILLED (Cost: " + DEBUG(dbgs() << "VREG " << PrintReg(vreg, tri) << " -> SPILLED (Cost: " << LRE.getParent().weight << ", New vregs: "); // Copy any newly inserted live intervals into the list of regs to @@ -561,7 +562,7 @@ bool RegAllocPBQP::mapPBQPToRegAlloc(const PBQPRAProblem &problem, for (LiveRangeEdit::iterator itr = LRE.begin(), end = LRE.end(); itr != end; ++itr) { assert(!(*itr)->empty() && "Empty spill range."); - DEBUG(dbgs() << (*itr)->reg << " "); + DEBUG(dbgs() << PrintReg((*itr)->reg, tri) << " "); vregsToAlloc.insert((*itr)->reg); } |

