summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2010-03-25 01:01:37 +0000
committerEvan Cheng <evan.cheng@apple.com>2010-03-25 01:01:37 +0000
commiteae56b57176f535c498b4862ed7c9bb991f1baa2 (patch)
treeb3446e2ebfe6d0e24637035224573775b6f35c9c /llvm/lib/CodeGen
parent2332152e4b3ffe8d2d79496c04a0181fe3a8b262 (diff)
downloadbcm5719-llvm-eae56b57176f535c498b4862ed7c9bb991f1baa2.tar.gz
bcm5719-llvm-eae56b57176f535c498b4862ed7c9bb991f1baa2.zip
Avoid being influenced by dbg_value instructions.
llvm-svn: 99465
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/PHIElimination.cpp2
-rw-r--r--llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/PHIElimination.cpp b/llvm/lib/CodeGen/PHIElimination.cpp
index 8bbe0a72528..f0057ce8ef8 100644
--- a/llvm/lib/CodeGen/PHIElimination.cpp
+++ b/llvm/lib/CodeGen/PHIElimination.cpp
@@ -74,7 +74,7 @@ bool llvm::PHIElimination::runOnMachineFunction(MachineFunction &Fn) {
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();
}
diff --git a/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp b/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp
index 97e858f09c8..c5e03627ffd 100644
--- a/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp
+++ b/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp
@@ -2800,7 +2800,7 @@ bool SimpleRegisterCoalescing::runOnMachineFunction(MachineFunction &fn) {
if (MO.isDead())
continue;
if (TargetRegisterInfo::isPhysicalRegister(Reg) ||
- !mri_->use_empty(Reg)) {
+ !mri_->use_nodbg_empty(Reg)) {
isDead = false;
break;
}
OpenPOWER on IntegriCloud