summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/RegAllocFast.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2011-06-21 23:02:36 +0000
committerDevang Patel <dpatel@apple.com>2011-06-21 23:02:36 +0000
commitd88b8babe05521fdb076ba73f90ffe54702ceffc (patch)
treef1f34d3170b503514a65548991118c2107356841 /llvm/lib/CodeGen/RegAllocFast.cpp
parent797cff050437d8bd9db53bd1de1e54e168155ae3 (diff)
downloadbcm5719-llvm-d88b8babe05521fdb076ba73f90ffe54702ceffc.tar.gz
bcm5719-llvm-d88b8babe05521fdb076ba73f90ffe54702ceffc.zip
After register is spilled there should not be any DBG_VALUE referring the same register.
llvm-svn: 133569
Diffstat (limited to 'llvm/lib/CodeGen/RegAllocFast.cpp')
-rw-r--r--llvm/lib/CodeGen/RegAllocFast.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/RegAllocFast.cpp b/llvm/lib/CodeGen/RegAllocFast.cpp
index dd5baab8d86..0f27dfcf884 100644
--- a/llvm/lib/CodeGen/RegAllocFast.cpp
+++ b/llvm/lib/CodeGen/RegAllocFast.cpp
@@ -293,9 +293,11 @@ void RAFast::spillVirtReg(MachineBasicBlock::iterator MI,
MachineBasicBlock *MBB = DBG->getParent();
MBB->insert(MI, NewDV);
DEBUG(dbgs() << "Inserting debug info due to spill:" << "\n" << *NewDV);
- LRIDbgValues[li] = NewDV;
}
}
+ // Now this register is spilled there is should not be any DBG_VALUE pointing
+ // to this register because they are all pointing to spilled value now.
+ LRIDbgValues.clear();
if (SpillKill)
LR.LastUse = 0; // Don't kill register again
}
OpenPOWER on IntegriCloud