Updating profile frequency for procedure inlining
Abstract
A method and apparatus for frequency-updating for procedure inlining. The frequency-updating scheme assumes the call graph of a program has no cycles. It keeps the frequency for each procedure as accurate as that before inlining. Using the present invention, the runtime performance of a source program by a compiler is improved. A source program is analyzed to generate a call graph of the source program, wherein each of the procedures has a first known execution frequency. The call graph is used in conjunction with inlining plans by an inlining algorithm to generate an inlined version of the source program wherein selected call sites have been inlines. An updated execution frequency is generated for each of the procedures and the updated execution frequency for each of the procedures is used to generate optimized executable code for the source program.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 17 · Forward citations: 13.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A computer controlled method for improving runtime performance of a source program by a compiler, said method comprising: (a) analyzing said source program comprising procedures to generate a call graph of said source program, wherein each of said procedures has a first known execution frequency; (b) using said call graph in conjunction with inlining plans by an inlining method to generate an inlined version of said source program wherein one or more selected call sites have been inlined; (c) after generating an inlined version of said source program, generating an updated execution frequency
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (13 of 13 total)
References Cited — Backward Prior Art (17)
Non-Patent Literature (3)
- Arnold, Matthew, et al., "A Comparative Study of Static and Profile-Based Heuristics for Inlining," ACM, pp. 52-64. Jan. 2000.
- Ball, Thomas, et al., "Optimally Profiling and Tracing Programs, ACM Transactions on Programming Languages and Systems," vol. 16, No. 4, Jul. 1994, 1319-1360.
- Chang, Pohua P., et al., "Using Profile Information to Assist Classic Code Optimizations," Software-Practice and Experience, vol. 21(12), 1301-1321, Dec. 1991.