diff options
| author | Dale Johannesen <dalej@apple.com> | 2010-02-15 01:45:47 +0000 |
|---|---|---|
| committer | Dale Johannesen <dalej@apple.com> | 2010-02-15 01:45:47 +0000 |
| commit | c704ea1c51d4cb97a8a62f9975ae0a9e5405eb00 (patch) | |
| tree | 002990f043702d4d8f16b399645c1d03ae40eacf /llvm/lib/CodeGen/RegAllocLocal.cpp | |
| parent | 7538eec67b4e08ace83e35647845619688bbd2f6 (diff) | |
| download | bcm5719-llvm-c704ea1c51d4cb97a8a62f9975ae0a9e5405eb00.tar.gz bcm5719-llvm-c704ea1c51d4cb97a8a62f9975ae0a9e5405eb00.zip | |
Ignore DBG_VALUE in a couple more places.
llvm-svn: 96207
Diffstat (limited to 'llvm/lib/CodeGen/RegAllocLocal.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/RegAllocLocal.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/RegAllocLocal.cpp b/llvm/lib/CodeGen/RegAllocLocal.cpp index 4d2e3a318b4..c25c24a67cb 100644 --- a/llvm/lib/CodeGen/RegAllocLocal.cpp +++ b/llvm/lib/CodeGen/RegAllocLocal.cpp @@ -492,7 +492,8 @@ MachineInstr *RALocal::reloadVirtReg(MachineBasicBlock &MBB, MachineInstr *MI, if (unsigned PR = getVirt2PhysRegMapSlot(VirtReg)) { MarkPhysRegRecentlyUsed(PR); // Already have this value available! MI->getOperand(OpNum).setReg(PR); // Assign the input register - getVirtRegLastUse(VirtReg) = std::make_pair(MI, OpNum); + if (!MI->isDebugValue()) + getVirtRegLastUse(VirtReg) = std::make_pair(MI, OpNum); return MI; } @@ -609,6 +610,8 @@ void RALocal::ComputeLocalLiveness(MachineBasicBlock& MBB) { DenseMap<unsigned, std::pair<MachineInstr*, unsigned> > LastUseDef; for (MachineBasicBlock::iterator I = MBB.begin(), E = MBB.end(); I != E; ++I) { + if (I->isDebugValue()) + continue; for (unsigned i = 0, e = I->getNumOperands(); i != e; ++i) { MachineOperand& MO = I->getOperand(i); // Uses don't trigger any flags, but we need to save |

