skip dbg_value instructions
authorJim Grosbach <grosbach@apple.com>
Tue, 29 Jun 2010 16:55:24 +0000 (16:55 +0000)
committerJim Grosbach <grosbach@apple.com>
Tue, 29 Jun 2010 16:55:24 +0000 (16:55 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107154 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/Thumb1RegisterInfo.cpp

index 2f635fe50ad5fcd1e4812bfcc139efe08b7673db..6c77d8565385814467a1fce057d3f502f377da26 100644 (file)
@@ -410,6 +410,8 @@ Thumb1RegisterInfo::saveScavengerRegister(MachineBasicBlock &MBB,
   // before that instead and adjust the UseMI.
   bool done = false;
   for (MachineBasicBlock::iterator II = I; !done && II != UseMI ; ++II) {
+    if (II->isDebugValue())
+      continue;
     // If this instruction affects R12, adjust our restore point.
     for (unsigned i = 0, e = II->getNumOperands(); i != e; ++i) {
       const MachineOperand &MO = II->getOperand(i);