[llvm-commits] [llvm] r96207 - /llvm/trunk/lib/CodeGen/RegAllocLocal.cpp
Dale Johannesen
dalej at apple.com
Sun Feb 14 17:45:47 PST 2010
Author: johannes
Date: Sun Feb 14 19:45:47 2010
New Revision: 96207
URL: http://llvm.org/viewvc/llvm-project?rev=96207&view=rev
Log:
Ignore DBG_VALUE in a couple more places.
Modified:
llvm/trunk/lib/CodeGen/RegAllocLocal.cpp
Modified: llvm/trunk/lib/CodeGen/RegAllocLocal.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/RegAllocLocal.cpp?rev=96207&r1=96206&r2=96207&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/RegAllocLocal.cpp (original)
+++ llvm/trunk/lib/CodeGen/RegAllocLocal.cpp Sun Feb 14 19:45:47 2010
@@ -492,7 +492,8 @@
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 @@
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
More information about the llvm-commits
mailing list