Instruction scheduling: Difference between revisions

Content deleted Content added
Descriptions wrong and confusing
Line 24:
== Algorithms ==
 
The simplest algorithm to find a topological sort is frequently used and is known as '''[[list scheduling''']]. Conceptually, it repeatedly selects a source of the dependency graph, appends it to the current instruction schedule and removes it from the graph. This may cause other vertices to be sources, which will then also be considered for scheduling. The algorithm terminates if the graph is empty.
 
To arrive at a good schedule, stalls should be prevented. This is determined by the choice of the next instruction to be scheduled. A number of heuristics are in common use: