Skip DEBUG_VALUE in some places where it was affecting codegen.

llvm-svn: 95647
This commit is contained in:
Dale Johannesen
2010-02-09 02:01:46 +00:00
parent ce25dd74c0
commit c3adf44885
3 changed files with 9 additions and 0 deletions

View File

@@ -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...