summaryrefslogtreecommitdiff
path: root/lib/CodeGen/LiveVariables.cpp
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2010-02-09 02:01:46 +0000
committerDale Johannesen <dalej@apple.com>2010-02-09 02:01:46 +0000
commitd94998f52574eacef148bd856de701af2c594b03 (patch)
tree6e322d8320bd89ffe43b53fdb53c103330ff64cd /lib/CodeGen/LiveVariables.cpp
parent8581e0147cd7622ecec96a47310fc1a211b77908 (diff)
downloadllvm-d94998f52574eacef148bd856de701af2c594b03.tar.gz
llvm-d94998f52574eacef148bd856de701af2c594b03.tar.bz2
llvm-d94998f52574eacef148bd856de701af2c594b03.tar.xz
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.cpp2
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...