Optimal instruction scheduling using integer programming
Kent Wilken, Jack Liu, Mark Heffernan · ACM SIGPLAN Notices · 2000
This paper presents a new approach to local instruction scheduling based on integer programming that produces optimal instruction schedules in a reasonable time, even for very large basic blocks. The new approach first uses a set of graph transformations to simplify the data-dependency graph while preserving the optimality of the final schedule. The simplified graph results in a simplified integer program which can be solved much faster. A new integer-programming formulation is then applied to the simplified graph. Various techniques are used to simplify the formulation, resulting in fewer integer-program variables, fewer integer-program constraints and fewer terms in some of the remaining constraints, thus reducing integer-program solution time. The new formulation also uses certain adaptively added constraints (cuts) to reduce solution time. The proposed optimal instruction scheduler is built within the Gnu Compiler Collection (GCC) and is evaluated experimentally using the SPEC95 floating point benchmarks. Although optimal scheduling for the target processor is considered intractable, all of the benchmarks' basic blocks are optimally scheduled, including blocks with up to 1000 instructions, while total compile time increases by only 14%.
Cited by 31 works. doi:10.1145/358438.349318 Open-access PDF
Authors
References
- Introduction to algorithms
- The Omega test: a fast and practical integer programming algorithm for dependence analysis
- Preprocessing and Probing Techniques for Mixed Integer Programming Problems
- Carnegie Mellon University
- Optimal and Near-optimal Global Register Allocation Using 0-1 Integer Programming
- Scheduling expressions on a pipelined processor with a maximal delay of one cycle
- The Age of Optimization: Solving Large-Scale Real-World Problems
- On the complexity of scheduling problems for parallel/pipelined machines
- Scheduling time-critical instructions on RISC machines
- Time-constrained code compaction for DSPs