[llvm-commits] [llvm] r157005 - in /llvm/trunk/lib/CodeGen: MachineScheduler.cpp RegisterPressure.cpp

Andrew Trick atrick at apple.com
Thu May 17 11:35:08 PDT 2012


Author: atrick
Date: Thu May 17 13:35:07 2012
New Revision: 157005

URL: http://llvm.org/viewvc/llvm-project?rev=157005&view=rev
Log:
comment

Modified:
    llvm/trunk/lib/CodeGen/MachineScheduler.cpp
    llvm/trunk/lib/CodeGen/RegisterPressure.cpp

Modified: llvm/trunk/lib/CodeGen/MachineScheduler.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/MachineScheduler.cpp?rev=157005&r1=157004&r2=157005&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/MachineScheduler.cpp (original)
+++ llvm/trunk/lib/CodeGen/MachineScheduler.cpp Thu May 17 13:35:07 2012
@@ -819,8 +819,6 @@
     assert(TopQueue.empty() && BotQueue.empty() && "ReadyQ garbage");
     return NULL;
   }
-  // As an initial placeholder heuristic, schedule in the direction that has
-  // the fewest choices.
   SUnit *SU;
   if (ForceTopDown) {
     SU = DAG->getSUnit(DAG->top());

Modified: llvm/trunk/lib/CodeGen/RegisterPressure.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/RegisterPressure.cpp?rev=157005&r1=157004&r2=157005&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/RegisterPressure.cpp (original)
+++ llvm/trunk/lib/CodeGen/RegisterPressure.cpp Thu May 17 13:35:07 2012
@@ -698,7 +698,7 @@
       unsigned Reg = VirtRegOpers.Uses[i];
       const LiveInterval *LI = &LIS->getInterval(Reg);
       // FIXME: allow the caller to pass in the list of vreg uses that remain to
-      // be top-scheduled to avoid searching uses at each query.
+      // be bottom-scheduled to avoid searching uses at each query.
       SlotIndex CurrIdx = LIS->getInstructionIndex(CurrPos).getRegSlot();
       if (LI->killedAt(SlotIdx)
           && !findUseBetween(Reg, CurrIdx, SlotIdx, MRI, LIS)) {





More information about the llvm-commits mailing list