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/TwoAddressInstructionPass.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/TwoAddressInstructionPass.cpp')
-rw-r--r-- | lib/CodeGen/TwoAddressInstructionPass.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/CodeGen/TwoAddressInstructionPass.cpp b/lib/CodeGen/TwoAddressInstructionPass.cpp index a3f6364aa8..71d9b83f7b 100644 --- a/lib/CodeGen/TwoAddressInstructionPass.cpp +++ b/lib/CodeGen/TwoAddressInstructionPass.cpp @@ -318,6 +318,8 @@ bool TwoAddressInstructionPass::NoUseAfterLastDef(unsigned Reg, MachineInstr *MI = MO.getParent(); if (MI->getParent() != MBB) continue; + if (MI->getOpcode() == TargetInstrInfo::DEBUG_VALUE) + continue; DenseMap<MachineInstr*, unsigned>::iterator DI = DistanceMap.find(MI); if (DI == DistanceMap.end()) continue; @@ -341,6 +343,8 @@ MachineInstr *TwoAddressInstructionPass::FindLastUseInMBB(unsigned Reg, MachineInstr *MI = MO.getParent(); if (MI->getParent() != MBB) continue; + if (MI->getOpcode() == TargetInstrInfo::DEBUG_VALUE) + continue; DenseMap<MachineInstr*, unsigned>::iterator DI = DistanceMap.find(MI); if (DI == DistanceMap.end()) continue; |