Combining analyses, combining optimizations
Cliff Click, Keith D. Cooper · ACM Transactions on Programming Languages and Systems · 1995
Modern optimizing compilers use several passes over a program's intermediate representation to generate good code. Many of these optimizations exhibit a phase-ordering problem. Getting the best code may require iterating optimizations until a fixed point is reached. Combining these phases can lead to the discovery of more facts about the program, exposing more opportunities for optimization. This article presents a framework for describing optimizations. It shows how to combine two such frameworks and how to reason about the properties of the resulting framework. The structure of the frame work provides insight into when a combination yields better results. To make the ideas more concrete, this article presents a framework for combining constant propagation, value numbering, and unreachable-code elimination. It is an open question as to what other frameworks can be combined in this way.
Cited by 178 works. doi:10.1145/201059.201061 Open-access PDF
Authors
References
- Compilers: Principles, Techniques, and Tools
- Computer methods for mathematical computations
- A lattice-theoretical fixpoint theorem and its applications
- Efficiency of a Good But Not Linear Set Union Algorithm
- The program dependence graph and its use in optimization
- Register allocation & spilling via graph coloring
- A Mathematical Introduction to Logic
- A unified approach to global program optimization
- Flow Analysis of Computer Programs
- Global common subexpression elimination