From 8b5704f9589f20cdfb28b3632cc396995e4d8c45 Mon Sep 17 00:00:00 2001 From: Andrew Trick Date: Mon, 30 Jul 2012 23:48:17 +0000 Subject: [PATCH] Use the latest MachineRegisterInfo APIs. No functionality. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161010 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/ScheduleDAGInstrs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/CodeGen/ScheduleDAGInstrs.cpp b/lib/CodeGen/ScheduleDAGInstrs.cpp index 5b40cb4a7e2..9c1dba355b4 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.