On Sparse Evaluation Representations

        The Sparse Evaluation Graph has emerged over the past several years as an intermediate representation that captures the dataflow information in a program compactly and helps perform dataflow analysis efficiently. The contributions of this paper are three-fold.

      • W present a linear time algorithm for constructing a variant of the Sparse Evaluation Graph for any dataflow analysis problem. Our algorithm has two advantages over previous algorithms for constructing Sparse Evaluation Graphs. First, it is simpler to understand and implement. Second, our algorithm generates a more compact representation than the one generated by previous algorithms. (Our algorithm is also as efficient as the most efficient known algorithm for the problem.
      • We present a formal definition of an equivalent flow graph, which attempts to capture the goals of sparse evaluation. We present a quadratic algorithm for constructing an equivalent flow graph consisting of the minimum number of vertices possible. We show that the problem of constructing an equivalent flow graph consisting of the minimum number of vertices possible. We show that the problem of constructing an equivalent flow graph consisting of the minimum number of vertices and edges is NP-hard.
      • We generalize the notion of an equivalent flow graph to that of a partially equivalent flow graph, an even more compact representation , utilizing the fact that the dataflow solution is not required at every node of the control-flow graph. We also present an efficient linear time algorithm for constructing a partially equivalent flow graph.

By: G. Ramalingam

Published in: Theoretical Computer Science, volume 277, (no 1-2), pages 119-47 in 2002

Please obtain a copy of this paper from your local library. IBM cannot distribute this paper externally.

Questions about this service can be mailed to reports@us.ibm.com .