summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit97c8a6a9287fb14b56d24daf7bd5bfa4731f2363 (patch)
tree7601f9893a3405e2df4a6f9bb0d92c67993950e0 /llvm/lib/Target/ARM
parent74b5e3e0aeb1d23a9f266236a6c590ae2ec3f6e4 (diff)
downloadbcm5719-llvm-97c8a6a9287fb14b56d24daf7bd5bfa4731f2363.tar.gz
bcm5719-llvm-97c8a6a9287fb14b56d24daf7bd5bfa4731f2363.zip
early exit for dbg_value instructions
llvm-svn: 106430
Diffstat (limited to 'llvm/lib/Target/ARM')
-rw-r--r--llvm/lib/Target/ARM/ARMConstantIslandPass.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Target/ARM/ARMConstantIslandPass.cpp b/llvm/lib/Target/ARM/ARMConstantIslandPass.cpp
index 3be6d1c821a..401000277c7 100644
--- a/llvm/lib/Target/ARM/ARMConstantIslandPass.cpp
+++ b/llvm/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);
OpenPOWER on IntegriCloud