#
72515bef |
| 14-Mar-2012 |
Andrew Trick <atrick@apple.com> |
misched comments
llvm-svn: 152699
|
#
af1bee72 |
| 09-Mar-2012 |
Andrew Trick <atrick@apple.com> |
misched: handle scheduler that insert instructions at empty region boundaries.
And add comments, since this is obviously confusing.
llvm-svn: 152445
|
#
edfe2ec4 |
| 09-Mar-2012 |
Andrew Trick <atrick@apple.com> |
misched: handle scheduling region boundaries nicely.
llvm-svn: 152393
|
#
8c207e47 |
| 09-Mar-2012 |
Andrew Trick <atrick@apple.com> |
misched interface: rename Begin/End to RegionBegin/RegionEnd since they are not private.
llvm-svn: 152382
|
#
1c0ec45b |
| 09-Mar-2012 |
Andrew Trick <atrick@apple.com> |
misched comments
llvm-svn: 152374
|
#
a21daf7f |
| 09-Mar-2012 |
Andrew Trick <atrick@apple.com> |
revert 152356: verify misched changes using -misched=shuffle.
llvm-svn: 152373
|
#
45300687 |
| 09-Mar-2012 |
Andrew Trick <atrick@apple.com> |
misched: allow the default scheduler to be one chosen by the target.
llvm-svn: 152360
|
#
bc3b4e3f |
| 09-Mar-2012 |
Evan Cheng <evan.cheng@apple.com> |
Cache MBB->begin. It's possible the scheduler / bundler may change MBB->begin().
llvm-svn: 152356
|
#
02a80da3 |
| 08-Mar-2012 |
Andrew Trick <atrick@apple.com> |
misched interface: Expose the MachineScheduler pass.
Allow targets to provide their own schedulers (subclass of ScheduleDAGInstrs) to the misched pass. Select schedulers using -misched=...
llvm-svn
misched interface: Expose the MachineScheduler pass.
Allow targets to provide their own schedulers (subclass of ScheduleDAGInstrs) to the misched pass. Select schedulers using -misched=...
llvm-svn: 152278
show more ...
|
#
9a0c5839 |
| 07-Mar-2012 |
Andrew Trick <atrick@apple.com> |
misched prep: Expose the ScheduleDAGInstrs interface so targets may implement their own MachineScheduler.
llvm-svn: 152261
|
#
a316faab |
| 07-Mar-2012 |
Andrew Trick <atrick@apple.com> |
misched prep: rename InsertPos to End.
ScheduleDAGInstrs knows nothing about how instructions will be moved or inserted.
llvm-svn: 152256
|
#
52226d40 |
| 07-Mar-2012 |
Andrew Trick <atrick@apple.com> |
misched preparation: rename core scheduler methods for consistency.
We had half the API with one convention, half with another. Now was a good time to clean it up.
llvm-svn: 152255
|
#
60cf03e7 |
| 07-Mar-2012 |
Andrew Trick <atrick@apple.com> |
misched preparation: clarify ScheduleDAG and ScheduleDAGInstrs roles.
ScheduleDAG is responsible for the DAG: SUnits and SDeps. It provides target hooks for latency computation.
ScheduleDAGInstrs e
misched preparation: clarify ScheduleDAG and ScheduleDAGInstrs roles.
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
show more ...
|
#
a5f19560 |
| 07-Mar-2012 |
Andrew Trick <atrick@apple.com> |
Added -view-misched=dags options.
llvm-svn: 152178
|
#
3b6eb1e5 |
| 07-Mar-2012 |
Andrew Trick <atrick@apple.com> |
misched: Use the StartBlock/FinishBlock hooks
llvm-svn: 152172
|
#
46cc9a4a |
| 22-Feb-2012 |
Andrew Trick <atrick@apple.com> |
Initialize SUnits before DAG building.
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
Initialize SUnits before DAG building.
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
show more ...
|
#
d9f2152a |
| 17-Feb-2012 |
Lang Hames <lhames@gmail.com> |
MachineScheduler shouldn't use/preserve LiveDebugVariables.
llvm-svn: 150773
|
#
77d20515 |
| 15-Feb-2012 |
Lang Hames <lhames@gmail.com> |
Disentangle moving a machine instr from updating LiveIntervals.
llvm-svn: 150552
|
#
d3f8fe81 |
| 10-Feb-2012 |
Andrew Trick <atrick@apple.com> |
RegAlloc superpass: includes phi elimination, coalescing, and scheduling.
Creates a configurable regalloc pipeline.
Ensure specific llc options do what they say and nothing more: -reglloc=... has n
RegAlloc superpass: includes phi elimination, coalescing, and scheduling.
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
show more ...
|
#
c24e09b2 |
| 09-Feb-2012 |
Andrew Trick <atrick@apple.com> |
comment
llvm-svn: 150121
|
#
e57583ab |
| 08-Feb-2012 |
Andrew Trick <atrick@apple.com> |
misched: bug in debug output.
llvm-svn: 150043
|
#
de9f8979 |
| 08-Feb-2012 |
Andrew Trick <atrick@apple.com> |
stale comment
llvm-svn: 150041
|
#
ad33d5ac |
| 27-Jan-2012 |
Lang Hames <lhames@gmail.com> |
Add a "moveInstr" method to LiveIntervals. This can be used to move instructions around within a basic block while maintaining live-intervals.
Updated ScheduleTopDownLive in MachineScheduler.cpp to
Add a "moveInstr" method to LiveIntervals. This can be used to move instructions around within a basic block while maintaining live-intervals.
Updated ScheduleTopDownLive in MachineScheduler.cpp to use the moveInstr API when reordering MIs.
llvm-svn: 149147
show more ...
|
#
7ccdc5c1 |
| 17-Jan-2012 |
Andrew Trick <atrick@apple.com> |
misched: Inital interface and implementation for ScheduleTopDownLive and ShuffleInstructions.
llvm-svn: 148291
|
#
e1c034fe |
| 17-Jan-2012 |
Andrew Trick <atrick@apple.com> |
Renamed MachineScheduler to ScheduleTopDownLive.
Responding to code review.
llvm-svn: 148290
|