Patents
US 7,340,732 B2#7838941 Most CitedExpiredUnited States (USPTO)Utility

Updating profile frequency for procedure inlining

13Forward Citations (#7838941 Global)
0.7/yrCitation Velocity (#10557998 Global)
1.75Citation PageRank (#18013881 Global)
17Prior Art Cited
1Claims (1 Indep. · 0 Dep.)
0Drawings / Sheets

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)

  1. 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 ↗

References Cited — Backward Prior Art (17)

PatentTitleYearCitations
US 5,276,881 AANDF producer using the HPcode-Plus compiler intermediate language199468
US 5,280,613 AANDF installer using the HPcode-Plus compiler intermediate language199441
US 5,606,697 ACompiler system for language processing program199735
US 5,659,754 AMethod and apparatus for an improved optimizing compiler1997140
US 5,740,443 ACall-site specific selective automatic inlining199890
US 5,920,723 ACompiler with inter-modular procedure optimization199957
US 6,059,839 AApparatus and method for compiler identification of address data200028
US 6,072,951 AProfile driven optimization of frequently executed paths with inlining of code fragment (one or more lines of code from a child procedure to a parent procedure)200069
US 6,078,744 AMethod and apparatus for improving compiler performance during subsequent compilations of a source program2000107
US 6,106,574 AComputer-implemented object-oriented method for relating objects in a compiler to locations in the source program and to inlined call histories200032
US 6,161,217 AAccurate method for inlining virtual calls200050
US 6,195,793 B1Method and computer program product for adaptive inlining in a computer system200137
US 6,223,340 B1Method for directly inlining virtual calls without on-stack replacement200151
US 6,249,911 B1Optimizing compiler for generating store instructions having memory hierarchy control bits20016
US 6,253,373 B1Tracking loop entry and exit points in a compiler200157
US 6,367,071 B1Compiler optimization techniques for exploiting a zero overhead loop mechanism200283
US 6,971,091 B1System and method for adaptively optimizing program execution by sampling at selected program points2005119

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.