Dependence-based program analysis
- 1 June 1993
- proceedings article
- Published by Association for Computing Machinery (ACM)
- Vol. 28 (6), 78-89
- https://doi.org/10.1145/155090.155098
Abstract
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.Keywords
This publication has 22 references indexed in Scilit:
- The multiflow trace scheduling compilerThe Journal of Supercomputing, 1993
- Efficiently computing static single assignment form and the control dependence graphACM Transactions on Programming Languages and Systems, 1991
- From control flow to dataflowJournal of Parallel and Distributed Computing, 1991
- Practical adaption of the global optimization algorithm of Morel and RenvoiseACM Transactions on Programming Languages and Systems, 1991
- Constant propagation with conditional branchesACM Transactions on Programming Languages and Systems, 1991
- A solution to a problem with Morel and Renvoise's “Global optimization by suppression of partial redundancies”ACM Transactions on Programming Languages and Systems, 1988
- The program dependence graph and its use in optimizationACM Transactions on Programming Languages and Systems, 1987
- Symbolic Program Analysis in Almost-Linear TimeSIAM Journal on Computing, 1982
- Global optimization by suppression of partial redundanciesCommunications of the ACM, 1979
- A schematic model of baryons and mesonsPhysics Letters, 1964