summaryrefslogtreecommitdiffstats
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
commitaf3fe9982116fe772960fa5fcfd05caaf9a7ba32 (patch)
tree0cf1a178c2c9446924c78350b81951a9ba115e34
parent522f08be0b866e8c9e559dfb9953c18b8a2d6b99 (diff)
downloadbcm5719-llvm-af3fe9982116fe772960fa5fcfd05caaf9a7ba32.tar.gz
bcm5719-llvm-af3fe9982116fe772960fa5fcfd05caaf9a7ba32.zip
Ignore debug info one more place during coalescing.
llvm-svn: 95819
-rw-r--r--llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp b/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp
index 1d9bda4ab0b..0d35b295a39 100644
--- a/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud