diff options
author | Dale Johannesen <dalej@apple.com> | 2010-02-11 18:22:31 +0000 |
---|---|---|
committer | Dale Johannesen <dalej@apple.com> | 2010-02-11 18:22:31 +0000 |
commit | 3bfef03eb6eb6b1b8fe85ba1029ef709aaafe8af (patch) | |
tree | 24f7f3086ad77b7ded56ae181b689c9f97a81bff /lib | |
parent | 27bb8d0a88538eeb20436457922e21e196519ced (diff) | |
download | external_llvm-3bfef03eb6eb6b1b8fe85ba1029ef709aaafe8af.zip external_llvm-3bfef03eb6eb6b1b8fe85ba1029ef709aaafe8af.tar.gz external_llvm-3bfef03eb6eb6b1b8fe85ba1029ef709aaafe8af.tar.bz2 |
Don't allow DBG_VALUE to affect codegen.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95889 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/CodeGen/TwoAddressInstructionPass.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/CodeGen/TwoAddressInstructionPass.cpp b/lib/CodeGen/TwoAddressInstructionPass.cpp index 31552f8..6f4ca82 100644 --- a/lib/CodeGen/TwoAddressInstructionPass.cpp +++ b/lib/CodeGen/TwoAddressInstructionPass.cpp @@ -213,6 +213,9 @@ bool TwoAddressInstructionPass::Sink3AddrInstruction(MachineBasicBlock *MBB, unsigned NumVisited = 0; for (MachineBasicBlock::iterator I = llvm::next(OldPos); I != KillPos; ++I) { MachineInstr *OtherMI = I; + // DBG_VALUE cannot be counted against the limit. + if (OtherMI->isDebugValue()) + continue; if (NumVisited > 30) // FIXME: Arbitrary limit to reduce compile time cost. return false; ++NumVisited; |