Skip to content
  1. Mar 09, 2012
  2. Mar 08, 2012
  3. Mar 07, 2012
    • Andrew Trick's avatar
      misched preparation: clarify ScheduleDAG and ScheduleDAGInstrs roles. · 60cf03e7
      Andrew Trick authored
      ScheduleDAG is responsible for the DAG: SUnits and SDeps. It provides target hooks for latency computation.
      
      ScheduleDAGInstrs extends ScheduleDAG and defines the current scheduling region in terms of MachineInstr iterators. It has access to the target's scheduling itinerary data. ScheduleDAGInstrs provides the logic for building the ScheduleDAG for the sequence of MachineInstrs in the current region. Target's can implement highly custom schedulers by extending this class.
      
      ScheduleDAGPostRATDList provides the driver and diagnostics for current postRA scheduling. It maintains a current Sequence of scheduled machine instructions and logic for splicing them into the block. During scheduling, it uses the ScheduleHazardRecognizer provided by the target.
      
      Specific changes:
      - Removed driver code from ScheduleDAG. clearDAG is the only interface needed.
      
      - Added enterRegion/exitRegion hooks to ScheduleDAGInstrs to delimit the scope of each scheduling region and associated DAG. They should be used to setup and cleanup any region-specific state in addition to the DAG itself. This is necessary because we reuse the same ScheduleDAG object for the entire function. The target may extend these hooks to do things at regions boundaries, like bundle terminators. The hooks are called even if we decide not to schedule the region. So all instructions in a block are "covered" by these calls.
      
      - Added ScheduleDAGInstrs::begin()/end() public API.
      
      - Moved Sequence into the driver layer, which is specific to the scheduling algorithm.
      
      llvm-svn: 152208
      60cf03e7
    • Andrew Trick's avatar
      Added -view-misched=dags options. · a5f19560
      Andrew Trick authored
      llvm-svn: 152178
      a5f19560
    • Andrew Trick's avatar
      misched: Use the StartBlock/FinishBlock hooks · 3b6eb1e5
      Andrew Trick authored
      llvm-svn: 152172
      3b6eb1e5
  4. Feb 22, 2012
    • Andrew Trick's avatar
      Initialize SUnits before DAG building. · 46cc9a4a
      Andrew Trick authored
      Affect on SD scheduling and postRA scheduling:
      Printing the DAG will display the nodes in top-down topological order.
      This matches the order within the MBB and makes my life much easier in general.
      
      Affect on misched:
      We don't need to track virtual register uses at all. This is awesome.
      I also intend to rely on the SUnit ID as a topo-sort index. So if A < B then we cannot have an edge B -> A.
      
      llvm-svn: 151135
      46cc9a4a
  5. Feb 17, 2012
  6. Feb 15, 2012
  7. Feb 10, 2012
    • Andrew Trick's avatar
      RegAlloc superpass: includes phi elimination, coalescing, and scheduling. · d3f8fe81
      Andrew Trick authored
      Creates a configurable regalloc pipeline.
      
      Ensure specific llc options do what they say and nothing more: -reglloc=... has no effect other than selecting the allocator pass itself. This patch introduces a new umbrella flag, "-optimize-regalloc", to enable/disable the optimizing regalloc "superpass". This allows for example testing coalscing and scheduling under -O0 or vice-versa.
      
      When a CodeGen pass requires the MachineFunction to have a particular property, we need to explicitly define that property so it can be directly queried rather than naming a specific Pass. For example, to check for SSA, use MRI->isSSA, not addRequired<PHIElimination>.
      
      CodeGen transformation passes are never "required" as an analysis
      
      ProcessImplicitDefs does not require LiveVariables.
      
      We have a plan to massively simplify some of the early passes within the regalloc superpass.
      
      llvm-svn: 150226
      d3f8fe81
  8. Feb 09, 2012
  9. Feb 08, 2012
  10. Jan 27, 2012
  11. Jan 17, 2012
  12. Jan 14, 2012
  13. Jan 13, 2012
Loading