diff options
author | Dale Johannesen <dalej@apple.com> | 2010-02-09 02:01:46 +0000 |
---|---|---|
committer | Dale Johannesen <dalej@apple.com> | 2010-02-09 02:01:46 +0000 |
commit | d94998f52574eacef148bd856de701af2c594b03 (patch) | |
tree | 6e322d8320bd89ffe43b53fdb53c103330ff64cd /lib/CodeGen/LiveVariables.cpp | |
parent | 8581e0147cd7622ecec96a47310fc1a211b77908 (diff) |
Skip DEBUG_VALUE in some places where it was affecting codegen.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95647 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/LiveVariables.cpp')
-rw-r--r-- | lib/CodeGen/LiveVariables.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/CodeGen/LiveVariables.cpp b/lib/CodeGen/LiveVariables.cpp index b44a2202e7..23ee8c3eda 100644 --- a/lib/CodeGen/LiveVariables.cpp +++ b/lib/CodeGen/LiveVariables.cpp @@ -543,6 +543,8 @@ bool LiveVariables::runOnMachineFunction(MachineFunction &mf) { for (MachineBasicBlock::iterator I = MBB->begin(), E = MBB->end(); I != E; ++I) { MachineInstr *MI = I; + if (MI->getOpcode()==TargetInstrInfo::DEBUG_VALUE) + continue; DistanceMap.insert(std::make_pair(MI, Dist++)); // Process all of the operands of the instruction... |