early exit for dbg_value instructions

llvm-svn: 106430
This commit is contained in:
Jim Grosbach 2010-06-21 17:49:23 +00:00
parent 74b5e3e0ae
commit 97c8a6a928
1 changed files with 2 additions and 0 deletions

View 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);