[llvm-branch-commits] [llvm-branch] r99468 - in /llvm/branches/Apple/Morbo/lib/CodeGen: PHIElimination.cpp SimpleRegisterCoalescing.cpp
Evan Cheng
evan.cheng at apple.com
Wed Mar 24 18:29:56 PDT 2010
Author: evancheng
Date: Wed Mar 24 20:29:56 2010
New Revision: 99468
URL: http://llvm.org/viewvc/llvm-project?rev=99468&view=rev
Log:
Merge: 99465.
Modified:
llvm/branches/Apple/Morbo/lib/CodeGen/PHIElimination.cpp
llvm/branches/Apple/Morbo/lib/CodeGen/SimpleRegisterCoalescing.cpp
Modified: llvm/branches/Apple/Morbo/lib/CodeGen/PHIElimination.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/Morbo/lib/CodeGen/PHIElimination.cpp?rev=99468&r1=99467&r2=99468&view=diff
==============================================================================
--- llvm/branches/Apple/Morbo/lib/CodeGen/PHIElimination.cpp (original)
+++ llvm/branches/Apple/Morbo/lib/CodeGen/PHIElimination.cpp Wed Mar 24 20:29:56 2010
@@ -74,7 +74,7 @@
E = ImpDefs.end(); I != E; ++I) {
MachineInstr *DefMI = *I;
unsigned DefReg = DefMI->getOperand(0).getReg();
- if (MRI->use_empty(DefReg))
+ if (MRI->use_nodbg_empty(DefReg))
DefMI->eraseFromParent();
}
Modified: llvm/branches/Apple/Morbo/lib/CodeGen/SimpleRegisterCoalescing.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/Morbo/lib/CodeGen/SimpleRegisterCoalescing.cpp?rev=99468&r1=99467&r2=99468&view=diff
==============================================================================
--- llvm/branches/Apple/Morbo/lib/CodeGen/SimpleRegisterCoalescing.cpp (original)
+++ llvm/branches/Apple/Morbo/lib/CodeGen/SimpleRegisterCoalescing.cpp Wed Mar 24 20:29:56 2010
@@ -2799,7 +2799,7 @@
if (MO.isDead())
continue;
if (TargetRegisterInfo::isPhysicalRegister(Reg) ||
- !mri_->use_empty(Reg)) {
+ !mri_->use_nodbg_empty(Reg)) {
isDead = false;
break;
}
More information about the llvm-branch-commits
mailing list