aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/ARM
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2010-06-21 17:49:23 +0000
committerJim Grosbach <grosbach@apple.com>2010-06-21 17:49:23 +0000
commit9cfcfeb24bf7182d40d8e8a54e350451b67a1136 (patch)
tree78a75b3a71a66a2c2a4581781846af18678bfb1f /lib/Target/ARM
parent9e13715fd54b5423204018a2db820d457e3f87a1 (diff)
downloadexternal_llvm-9cfcfeb24bf7182d40d8e8a54e350451b67a1136.zip
external_llvm-9cfcfeb24bf7182d40d8e8a54e350451b67a1136.tar.gz
external_llvm-9cfcfeb24bf7182d40d8e8a54e350451b67a1136.tar.bz2
early exit for dbg_value instructions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106430 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM')
-rw-r--r--lib/Target/ARM/ARMConstantIslandPass.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Target/ARM/ARMConstantIslandPass.cpp b/lib/Target/ARM/ARMConstantIslandPass.cpp
index 3be6d1c..4010002 100644
--- a/lib/Target/ARM/ARMConstantIslandPass.cpp
+++ b/lib/Target/ARM/ARMConstantIslandPass.cpp
@@ -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);