[llvm-commits] [llvm] r161010 - /llvm/trunk/lib/CodeGen/ScheduleDAGInstrs.cpp

Andrew Trick atrick at apple.com
Mon Jul 30 16:48:17 PDT 2012


Author: atrick
Date: Mon Jul 30 18:48:17 2012
New Revision: 161010

URL: http://llvm.org/viewvc/llvm-project?rev=161010&view=rev
Log:
Use the latest MachineRegisterInfo APIs. No functionality.

Modified:
    llvm/trunk/lib/CodeGen/ScheduleDAGInstrs.cpp

Modified: llvm/trunk/lib/CodeGen/ScheduleDAGInstrs.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/ScheduleDAGInstrs.cpp?rev=161010&r1=161009&r2=161010&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/ScheduleDAGInstrs.cpp (original)
+++ llvm/trunk/lib/CodeGen/ScheduleDAGInstrs.cpp Mon Jul 30 18:48:17 2012
@@ -414,7 +414,7 @@
   // 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.





More information about the llvm-commits mailing list