Interprocedural dataflow analysis in an executable optimizer
David Goodwin · Proceedings of the ACM SIGPLAN Conference on Programming Language Design and Implementation · 1997
Interprocedural dataflow information enables link-time and post-link-time optimizers to perform analyses and code transformations that are not possible in a traditional compiler. This paper describes the interprocedural dataflow analysis techniques used by Spike, a post-linktime optimizer for Alpha/NT executables. Spike uses dataflow analysis to summarize the register definitions, uses, and kills that occur external to each routine, allowing Spike to perform a variety of optimizations that require interprocedural dataflow information. Because Spike is designed to optimize large PC applications, the time required to perform interprocedural dataflow analysis could potentially be unacceptably long, limiting Spike's effectiveness and applicability. To decrease dataflow analysis time, Spike uses a compact representation of a program's intraprocedural and interprocedural control flow that efficiently summarizes the register definitions and uses that occur in the program. Experimental results are presented for the SPEC95 integer benchmarks and eight large PC applications. The results show that the compact representation allows Spike to compute interprocedural dataflow information in less than 2 seconds for each of the SPEC95 integer benchmarks. Even for the largest PC application containing over 1.7 million instructions in 340 thousand basic blocks, interprocedural dataflow analysis requires just 12 seconds.
Cited by 47 works. doi:10.1145/258915.258927
Authors
References
- Compilers: Principles, Techniques, and Tools
- Precise interprocedural dataflow analysis via graph reachability
- An efficient method of computing static single assignment form
- Two approaches to interprocedural data flow analysis
- Profile guided code positioning
- Link-time optimization of address calculation on a 64-bit architecture
- A Practical System for Intermodule Code Optimization at Link-Time
- The program summary graph and flow-sensitive interprocedual data flow analysis
- Profile guided code positioning
- Precise interprocedural dataflow analysis with applications to constant propagation