1994 · 14 citations · 11 references
ComputingComputer ScienceAlgorithmsCompilersProgramming LanguagesAbstract Syntax TreesData-flow AnalysisType SystemsCall SemanticsGreedy ApproximationGreedy HeuristicsInterprocedural Optimization
This paper discusses call forwarding, a simple interprocedural optimization technique for dynamically typed languages. The basic idea behind the optimization is straightforward: find an ordering for the “entry actions” of a procedure, and generate multiple entry points for the procedure, so as to maximize the savings realized from different call sites bypassing different sets of entry actions. We show that the problem of computing optimal solutions to arbitrary call forwarding problems is NP-complete, and describe an efficient greedy algorithm for the problem. Experimental results indicate that (i) this algorithm is effective, in that the solutions produced are generally close to optimal; and (ii) the resulting optimization leads to significant performance improvements for a number of benchmarks tested.
11
Some simplified NP-complete graph problems
M. R. Garey, David S. Johnson, Larry Stockmeyer · Theoretical Computer Science · 1976 · 2.1K citations
Johan Andersson, Stefan Andersson, Kent Boortz et al. · 1993 · 310 citations
Predicting program behavior using real or estimated profiles
David W. Wall · 1991 · 168 citations
Optimally profiling and tracing programs
Thomas Ball, James R. Larus · 1992 · 164 citations · Full text