Use the latest MachineRegisterInfo APIs. No functionality.
authorAndrew Trick <atrick@apple.com>
Mon, 30 Jul 2012 23:48:17 +0000 (23:48 +0000)
committerAndrew Trick <atrick@apple.com>
Mon, 30 Jul 2012 23:48:17 +0000 (23:48 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161010 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/ScheduleDAGInstrs.cpp

index 5b40cb4a7e264745227b447425c598bb72f5be5a..9c1dba355b480f36b144c41d7daa4e8059b9b228 100644 (file)
@@ -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.