1995 · 108 citations · 31 references
ComputingComputer EngineeringComputer ScienceAlgorithmic DesignAlgorithmsProgramming LanguagesControl-flow AnalysisData-flow AnalysisDataflow ModelingCopy PropagationDemand-driven Data-flow AnalysisDemand-driven FlowInterprocedural AnalysisInterprocedural Data-flow AnalysisInterprocedural Dataflow AnalysisIntraprocedural Data-flow AnalysisPartial Reversal
This paper presents a general framework for deriving demand-driven algorithms for interprocedural data flow analysis of imperative programs. The goal of demand-driven analysis is to reduce the time and/or space overhead of conventional exhaustive analysis by avoiding the collection of information that is not needed. In our framework, a demand for data flow information is modeled as a set of date flow queries. The derived demand-driven algorithms find responses to these queries through a partial reversal of the respective data flow analysis. Depending on whether minimizing time or space is of primary concern, result caching may be incorporated in the derived algorithm. Our framework is applicable to interprocedural data flow problems with a finite domain set. If the problem's flow functions are distributive, the derived demand algorithms provide as precise information as the corresponding exhaustive analysis. For problems with monotone but non-distributive flow functions the provided data flow solutions are only approximate. We demonstrate our approach using the example of interprocedural copy constant propagation.
31
A unified approach to global program optimization
Gary A. Kildall · 1973 · 901 citations
Global value numbers and redundant computations
Barry K. Rosen, Mark N. Wegman, F. K. Zadeck · 1988 · 483 citations
Monotone data flow analysis frameworks
John B. Kam, Jeffrey D. Ullman · Acta Informatica · 1977 · 380 citations