diff options
author | Dale Johannesen <dalej@apple.com> | 2010-03-05 00:02:59 +0000 |
---|---|---|
committer | Dale Johannesen <dalej@apple.com> | 2010-03-05 00:02:59 +0000 |
commit | 2061c84109fb36f34745a700bc5283e13b51d736 (patch) | |
tree | 5cd3a45ba9cdfd4247c0484185f7fd0146cbf7ba /llvm/lib/CodeGen/CriticalAntiDepBreaker.cpp | |
parent | 9984bd6092e75b32e3f30bc486d5b0ee8af9e942 (diff) | |
download | llvm-2061c84109fb36f34745a700bc5283e13b51d736.zip llvm-2061c84109fb36f34745a700bc5283e13b51d736.tar.gz llvm-2061c84109fb36f34745a700bc5283e13b51d736.tar.bz2 |
Fix some more places where dbg_value affected codegen.
llvm-svn: 97765
Diffstat (limited to 'llvm/lib/CodeGen/CriticalAntiDepBreaker.cpp')
-rw-r--r-- | llvm/lib/CodeGen/CriticalAntiDepBreaker.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/CriticalAntiDepBreaker.cpp b/llvm/lib/CodeGen/CriticalAntiDepBreaker.cpp index 056e2d5..7d3de89 100644 --- a/llvm/lib/CodeGen/CriticalAntiDepBreaker.cpp +++ b/llvm/lib/CodeGen/CriticalAntiDepBreaker.cpp @@ -119,6 +119,8 @@ void CriticalAntiDepBreaker::FinishBlock() { void CriticalAntiDepBreaker::Observe(MachineInstr *MI, unsigned Count, unsigned InsertPosIndex) { + if (MI->isDebugValue()) + return; assert(Count < InsertPosIndex && "Instruction index out of expected range!"); // Any register which was defined within the previous scheduling region @@ -409,6 +411,8 @@ BreakAntiDependencies(std::vector<SUnit>& SUnits, for (MachineBasicBlock::iterator I = End, E = Begin; I != E; --Count) { MachineInstr *MI = --I; + if (MI->isDebugValue()) + continue; // Check if this instruction has a dependence on the critical path that // is an anti-dependence that we may be able to break. If it is, set |