aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2010-02-10 23:04:09 +0000
committerDale Johannesen <dalej@apple.com>2010-02-10 23:04:09 +0000
commit99efcf299fb522297dee43066f9c19df00813dcb (patch)
tree4e739e45379800269d3ee4bac347e9743f8b09a2 /lib/CodeGen
parent9a722caa26eaa19fe39e62acc05fd4e1902eb92b (diff)
downloadexternal_llvm-99efcf299fb522297dee43066f9c19df00813dcb.zip
external_llvm-99efcf299fb522297dee43066f9c19df00813dcb.tar.gz
external_llvm-99efcf299fb522297dee43066f9c19df00813dcb.tar.bz2
Ignore debug info one more place during coalescing.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95819 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/SimpleRegisterCoalescing.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/CodeGen/SimpleRegisterCoalescing.cpp b/lib/CodeGen/SimpleRegisterCoalescing.cpp
index 1d9bda4..0d35b29 100644
--- a/lib/CodeGen/SimpleRegisterCoalescing.cpp
+++ b/lib/CodeGen/SimpleRegisterCoalescing.cpp
@@ -1173,6 +1173,8 @@ SimpleRegisterCoalescing::HasIncompatibleSubRegDefUse(MachineInstr *CopyMI,
for (MachineRegisterInfo::reg_iterator I = mri_->reg_begin(VirtReg),
E = mri_->reg_end(); I != E; ++I) {
MachineOperand &O = I.getOperand();
+ if (O.isDebug())
+ continue;
MachineInstr *MI = &*I;
if (MI == CopyMI || JoinedCopies.count(MI))
continue;