From: Jim Grosbach Date: Fri, 4 Jun 2010 17:57:34 +0000 (+0000) Subject: Another fix to prevent debug info from affecting codegen. rdar://7797940 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=8af44b687b0ee552b696361e1ab4b2c178ff6f9e;p=oota-llvm.git Another fix to prevent debug info from affecting codegen. rdar://7797940 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@105470 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/ARM/ARMLoadStoreOptimizer.cpp b/lib/Target/ARM/ARMLoadStoreOptimizer.cpp index b0822952701..f11575eacfe 100644 --- a/lib/Target/ARM/ARMLoadStoreOptimizer.cpp +++ b/lib/Target/ARM/ARMLoadStoreOptimizer.cpp @@ -1024,6 +1024,10 @@ bool ARMLoadStoreOpt::LoadStoreMultipleOpti(MachineBasicBlock &MBB) { RS->enterBasicBlock(&MBB); MachineBasicBlock::iterator MBBI = MBB.begin(), E = MBB.end(); while (MBBI != E) { + if (MBBI->isDebugValue()) { + ++MBBI; + continue; + } if (FixInvalidRegPairOp(MBB, MBBI)) continue;