[llvm-commits] [llvm] r119374 - /llvm/trunk/lib/CodeGen/RegAllocLinearScan.cpp
Jakob Stoklund Olesen
stoklund at 2pi.dk
Tue Nov 16 11:55:12 PST 2010
Author: stoklund
Date: Tue Nov 16 13:55:12 2010
New Revision: 119374
URL: http://llvm.org/viewvc/llvm-project?rev=119374&view=rev
Log:
Print out the register class of the current interval.
Modified:
llvm/trunk/lib/CodeGen/RegAllocLinearScan.cpp
Modified: llvm/trunk/lib/CodeGen/RegAllocLinearScan.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/RegAllocLinearScan.cpp?rev=119374&r1=119373&r2=119374&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/RegAllocLinearScan.cpp (original)
+++ llvm/trunk/lib/CodeGen/RegAllocLinearScan.cpp Tue Nov 16 13:55:12 2010
@@ -954,10 +954,11 @@
/// assignRegOrStackSlotAtInterval - assign a register if one is available, or
/// spill.
void RALinScan::assignRegOrStackSlotAtInterval(LiveInterval* cur) {
- DEBUG(dbgs() << "\tallocating current interval: ");
+ const TargetRegisterClass *RC = mri_->getRegClass(cur->reg);
+ DEBUG(dbgs() << "\tallocating current interval from "
+ << RC->getName() << ": ");
// This is an implicitly defined live interval, just assign any register.
- const TargetRegisterClass *RC = mri_->getRegClass(cur->reg);
if (cur->empty()) {
unsigned physReg = vrm_->getRegAllocPref(cur->reg);
if (!physReg)
More information about the llvm-commits
mailing list