diff options
author | Devang Patel <dpatel@apple.com> | 2010-09-10 20:32:09 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2010-09-10 20:32:09 +0000 |
commit | 6095d818e5326a0b6d30a81a9a4274fe05c34984 (patch) | |
tree | 5b759594f6562a78f078320eae4c1e43ed5f1ce4 /llvm/lib/CodeGen/RegAllocFast.cpp | |
parent | 0a3f52361425f54d1be06033477312ebc668e034 (diff) | |
download | bcm5719-llvm-6095d818e5326a0b6d30a81a9a4274fe05c34984.tar.gz bcm5719-llvm-6095d818e5326a0b6d30a81a9a4274fe05c34984.zip |
Add DEBUG message.
llvm-svn: 113614
Diffstat (limited to 'llvm/lib/CodeGen/RegAllocFast.cpp')
-rw-r--r-- | llvm/lib/CodeGen/RegAllocFast.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/RegAllocFast.cpp b/llvm/lib/CodeGen/RegAllocFast.cpp index fc150d55e22..83014024633 100644 --- a/llvm/lib/CodeGen/RegAllocFast.cpp +++ b/llvm/lib/CodeGen/RegAllocFast.cpp @@ -798,9 +798,11 @@ void RAFast::AllocateBasicBlock() { setPhysReg(MI, i, LRI->second.PhysReg); else { int SS = StackSlotForVirtReg[Reg]; - if (SS == -1) + if (SS == -1) { // We can't allocate a physreg for a DebugValue, sorry! + DEBUG(dbgs() << "Unable to allocate vreg used by DBG_VALUE"); MO.setReg(0); + } else { // Modify DBG_VALUE now that the value is in a spill slot. int64_t Offset = MI->getOperand(1).getImm(); @@ -817,9 +819,11 @@ void RAFast::AllocateBasicBlock() { MI = NewDV; ScanDbgValue = true; break; - } else + } else { // We can't allocate a physreg for a DebugValue; sorry! + DEBUG(dbgs() << "Unable to allocate vreg used by DBG_VALUE"); MO.setReg(0); + } } } } |