From c3adf44885d75326b607b1772c5d3618b7f91ae2 Mon Sep 17 00:00:00 2001 From: Dale Johannesen Date: Tue, 9 Feb 2010 02:01:46 +0000 Subject: Skip DEBUG_VALUE in some places where it was affecting codegen. llvm-svn: 95647 --- llvm/lib/CodeGen/LiveVariables.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'llvm/lib/CodeGen/LiveVariables.cpp') diff --git a/llvm/lib/CodeGen/LiveVariables.cpp b/llvm/lib/CodeGen/LiveVariables.cpp index b44a220..23ee8c3 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... -- cgit v1.1