early exit for dbg_value instructions
authorJim Grosbach <grosbach@apple.com>
Mon, 21 Jun 2010 17:49:23 +0000 (17:49 +0000)
committerJim Grosbach <grosbach@apple.com>
Mon, 21 Jun 2010 17:49:23 +0000 (17:49 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106430 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/ARMConstantIslandPass.cpp

index 3be6d1c821a4a06cdfd25253ef9c34479c5d20ff..401000277c7f2b151eb2a21e3f381831c5a7d0ed 100644 (file)
@@ -492,6 +492,8 @@ void ARMConstantIslands::InitialFunctionScan(MachineFunction &MF,
     unsigned MBBSize = 0;
     for (MachineBasicBlock::iterator I = MBB.begin(), E = MBB.end();
          I != E; ++I) {
+      if (I->isDebugValue())
+        continue;
       // Add instruction size to MBBSize.
       MBBSize += TII->GetInstSizeInBytes(I);