Dependence-based program analysis
Richard Johnson, Keshav K. Pingali · Proceedings of the ACM SIGPLAN Conference on Programming Language Design and Implementation · 1993
Program analysis and optimization can be speeded up through the use of the dependence flow graph (DFG), a representation of program dependences which generalizes def-use chains and static single assignment (SSA) form. In this paper, we give a simple graph-theoretic description of the DFG and show how the DFG for a program can be constructed in O(EV ) time. We then show how forward and backward dataflow analyses can be performed efficiently on the DFG, using constant propagation and elimination of partial redundancies as examples. These analyses can be framed as solutions of dataflow equations in the DFG. Our construction algorithm is of independent interest because it can be used to construct a program's control dependence graph in O(E) time and its SSA representation in O(EV ) time, which are improvements over existing algorithms. 1 Introduction Anumber of recent papers have focused attention on the problem of speeding up program optimization [FOW87, BMO90, CCF91, PBJ + 91, CFR +...
Cited by 116 works. doi:10.1145/155090.155098
Authors
References
- Compilers: Principles, Techniques, and Tools
- A schematic model of baryons and mesons
- The program dependence graph and its use in optimization
- A unified approach to global program optimization
- Efficiently computing static single assignment form and the control dependence graph
- Constant propagation with conditional branches
- An efficient method of computing static single assignment form
- Global optimization by suppression of partial redundancies
- The multiflow trace scheduling compiler
- Constant propagation with conditional branches