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 | b0812f114b83a32c4b90a4b553c7177c557558b5 (patch) | |
tree | 24518a64cc329d5dbb4ae5cd2e75d5ff7d7ab76c /lib/CodeGen/CriticalAntiDepBreaker.cpp | |
parent | e1d50cd5e4ff7f4d977cc8bda720a58737e7cf8d (diff) | |
download | llvm-b0812f114b83a32c4b90a4b553c7177c557558b5.tar.gz llvm-b0812f114b83a32c4b90a4b553c7177c557558b5.tar.bz2 llvm-b0812f114b83a32c4b90a4b553c7177c557558b5.tar.xz |
Fix some more places where dbg_value affected codegen.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97765 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CriticalAntiDepBreaker.cpp')
-rw-r--r-- | lib/CodeGen/CriticalAntiDepBreaker.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/CodeGen/CriticalAntiDepBreaker.cpp b/lib/CodeGen/CriticalAntiDepBreaker.cpp index 056e2d5b01..7d3de89ada 100644 --- a/lib/CodeGen/CriticalAntiDepBreaker.cpp +++ b/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 |