summaryrefslogtreecommitdiff
path: root/lib/CodeGen/RegAllocFast.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2010-09-10 20:32:09 +0000
committerDevang Patel <dpatel@apple.com>2010-09-10 20:32:09 +0000
commit4bafda9618f9dfa9edc8da08bb3001ef2d1a9b68 (patch)
treec5f689fc43cb810b496b0b3816fd06a683fc687b /lib/CodeGen/RegAllocFast.cpp
parent1ec2ee65267d69ae9f0451d60e02d357877371ff (diff)
downloadllvm-4bafda9618f9dfa9edc8da08bb3001ef2d1a9b68.tar.gz
llvm-4bafda9618f9dfa9edc8da08bb3001ef2d1a9b68.tar.bz2
llvm-4bafda9618f9dfa9edc8da08bb3001ef2d1a9b68.tar.xz
Add DEBUG message.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113614 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/RegAllocFast.cpp')
-rw-r--r--lib/CodeGen/RegAllocFast.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/CodeGen/RegAllocFast.cpp b/lib/CodeGen/RegAllocFast.cpp
index fc150d55e2..8301402463 100644
--- a/lib/CodeGen/RegAllocFast.cpp
+++ b/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);
+ }
}
}
}