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 | c3adf44885d75326b607b1772c5d3618b7f91ae2 (patch) | |
tree | 0a36a1e25d5c476bc400b844f66298c653c403db /llvm/lib/CodeGen/LiveVariables.cpp | |
parent | ce25dd74c00d9a8397a7693b1e55bd7b49b1a293 (diff) | |
download | bcm5719-llvm-c3adf44885d75326b607b1772c5d3618b7f91ae2.tar.gz bcm5719-llvm-c3adf44885d75326b607b1772c5d3618b7f91ae2.zip |
Skip DEBUG_VALUE in some places where it was affecting codegen.
llvm-svn: 95647
Diffstat (limited to 'llvm/lib/CodeGen/LiveVariables.cpp')
-rw-r--r-- | llvm/lib/CodeGen/LiveVariables.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/LiveVariables.cpp b/llvm/lib/CodeGen/LiveVariables.cpp index b44a2202e76..23ee8c3eda1 100644 --- a/llvm/lib/CodeGen/LiveVariables.cpp +++ b/llvm/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... |