aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen
diff options
context:
space:
mode:
authorAndrew Trick <atrick@apple.com>2012-07-30 23:48:17 +0000
committerAndrew Trick <atrick@apple.com>2012-07-30 23:48:17 +0000
commit8b5704f9589f20cdfb28b3632cc396995e4d8c45 (patch)
tree745bac889d6e9b1d61635fcace70b3aa5e4efa4a /lib/CodeGen
parent0492a8c530df6c7b2ebcfa91fed930c1a1bf664d (diff)
Use the latest MachineRegisterInfo APIs. No functionality.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161010 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/ScheduleDAGInstrs.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/ScheduleDAGInstrs.cpp b/lib/CodeGen/ScheduleDAGInstrs.cpp
index 5b40cb4a7e..9c1dba355b 100644
--- a/lib/CodeGen/ScheduleDAGInstrs.cpp
+++ b/lib/CodeGen/ScheduleDAGInstrs.cpp
@@ -414,7 +414,7 @@ void ScheduleDAGInstrs::addVRegDefDeps(SUnit *SU, unsigned OperIdx) {
// Singly defined vregs do not have output/anti dependencies.
// The current operand is a def, so we have at least one.
// Check here if there are any others...
- if (llvm::next(MRI.def_begin(Reg)) == MRI.def_end())
+ if (MRI.hasOneDef(Reg))
return;
// Add output dependence to the next nearest def of this vreg.