Interprocedural dead store elimination
Abstract
A system for optimizing computer code generation by carrying out interprocedural dead store elimination. The system carries out a top down traversal of a call graph in an intermediate representation of the code being compiled. Live on exit (LOE) sets are defined for variables at call points for functions in the code being compiled. Bit vectors representing the LOE sets for call points for functions are stored in an LOE table indexed or hashed by call graph edges. For each function definition reached in the call graph traversal, a LOE set for the function itself is generated by taking the union of the LOE call point sets. The entries in the LOE table for the LOE call point sets are then removed. The LOE set for each function is used to determine if variables that are the subject of a store operation in a function may be subject to a dead store elimination optimization.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 19 · Forward citations: 17.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method for determining the correctness of a potential interprocedural dead store optimization for an optimizing compiler, the optimizing compiler generating an intermediate representation of code to be compiled, including a call graph, the method comprising a top-down traversal of the call graph, and, for each procedure definition reached in the call graph traversal, further comprising: determining a live on exit set of interprocedural global variables for the reached procedure definition; determining a live on exit set of interprocedural global variables for each procedure call point within
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (15 of 17 total)
References Cited — Backward Prior Art (19)
Non-Patent Literature (5)
- Adve et al., High Performance Fortran Compilation Techniques for Parallelizing Scientific Codes, IEEE, Nov. 1998, pp. 1-20.
- Carr et al., Compiler optimization for improving data locality, 1994, IEEE, pp. 252-262.
- Cooper, Fast Interprocedural Alias Analysis, ACMPRESS, Jan. 1989, pp. 49-59.
- Cooper, Interprocedural Analyses of Fortran Programs, Citeseer, 1997, pp. 1-33.
- Genin et al., System design, optimization and intelligent code generation for standard digital signal processors, May 1989, IEEE, vol. 1, pp. 565-569.