diff options
author | Devang Patel <dpatel@apple.com> | 2011-06-21 23:02:36 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2011-06-21 23:02:36 +0000 |
commit | 6f373a87cba3b0c88bc76bf1d03ee5f81143764f (patch) | |
tree | 56675322c0962b59efb0f2b5720a34f289c59491 /lib/CodeGen/RegAllocFast.cpp | |
parent | 0b6a44afb92fed0365b6709c1f46b0c5e49e1a72 (diff) | |
download | llvm-6f373a87cba3b0c88bc76bf1d03ee5f81143764f.tar.gz llvm-6f373a87cba3b0c88bc76bf1d03ee5f81143764f.tar.bz2 llvm-6f373a87cba3b0c88bc76bf1d03ee5f81143764f.tar.xz |
After register is spilled there should not be any DBG_VALUE referring the same register.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133569 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/RegAllocFast.cpp')
-rw-r--r-- | lib/CodeGen/RegAllocFast.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/CodeGen/RegAllocFast.cpp b/lib/CodeGen/RegAllocFast.cpp index dd5baab8d8..0f27dfcf88 100644 --- a/lib/CodeGen/RegAllocFast.cpp +++ b/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 } |