Patents
US 9,244,666 B2#45203058 Most CitedActiveUnited States (USPTO)Utility

Globally inline a callee with high cost-effectiveness on the basis only of profile information in a call graph

2Forward Citations (#45203058 Global)
0.2/yrCitation Velocity (#33551384 Global)
0.87Citation PageRank (#49478813 Global)
16Prior Art Cited
2Claims (2 Indep. · 0 Dep.)
0Drawings / Sheets

Abstract

A mechanism is provided to globally inline a callee with high cost-effectiveness on the basis only of profile information in a call graph, without looking through all call-graph edges. The mechanism provides a technique for inlining. An inline cost-effectiveness ratio for the callee reachable from a caller to be compiled is calculated. Calculating the inline cost-effectiveness ration includes using a ratio of a frequency of calls to the callee to a total of call frequencies as effectiveness and using a ratio of a code size of the callee to a total size of inlinable code as cost. A determination is made as to whether to inline the callee by comparing the inline cost-effectiveness ratio with a predetermined threshold. The callee is inlined into a source code in response to determining that the callee method is to be inlined.

Interactive Citation Constellation Global Citation Ranking

Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 16 · Forward citations: 2.

Claims (2 — 2 Independent, 0 Dependent)

  1. Claim 1Independent Claim

    A method, executed by a computer, for inlining, comprising: calculating, by a processor in the computer, an inline cost-effectiveness ratio for a callee reachable from a caller to be compiled, wherein calculating the inline cost-effectiveness ratio includes using a ratio of a frequency of calls to the callee to a total of frequencies of calls as effectiveness in the inline cost-effectiveness ratio, and using a ratio of a code size of the callee to a total size of inlinable code as cost in the inline cost-effectiveness ratio; determining, by the processor in the computer, whether to inline the

  2. Claim 2Independent Claim

Technical Overview & Description

Full multi-page specification text is archived at the issuing office. Read complete official specification ↗

References Cited — Backward Prior Art (16)

PatentTitleYearCitations
JP H06202875 ACompiler for attaining optimization with in-line expansion—6
US 5,740,443 ACall-site specific selective automatic inlining199890
JP H11212797 AProgram conversion method, program converter and medium for storing program conversion program—3
JP H11306026 ACode optimization device and method and computer readable recording medium recording code optimization program—1
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
JP 2001188681 ALanguage processing system, object code generating method, and in-line expansion method—2
US 6,292,940 B1Program complete system and its compile method for efficiently compiling a source program including an indirect call for a procedure200146
JP 2004062234 AIn-line processing method and compiler program used for the same—3
US 2005044538 A1Interprocedural computing code optimization method and system—67
US 2005097528 A1Cross-file inlining by using summaries and global worklist—34
US 2005097533 A1Run-time performance with call site inline specialization—39
US 2005097527 A1Scalable cross-file inlining through locality-based transformation ordering—9
US 2005262491 A1Updating profile frequency for procedure inlining—23
US 7,302,679 B2Scalable cross-file inlining through locality-based transformation ordering200724
US 7,340,732 B2Updating profile frequency for procedure inlining200813
US 7,996,825 B2Cross-file inlining by using summaries and global worklist201127

Non-Patent Literature (5)

  • Arnold, Matthew et al., "A Comparative Study of Static and Dynamic Heuristics for Inlining", ACM SIGPLAN Workshop on Dynamic and Adaptive Compilation and Optimization (DYNAMO'00), Jan. 2000, 18 pages.
  • Boehm, Omer et al., "Aggressive Function Inlining with Global Code Reordering", IBM Corporation, IBM Research Report, Computer Science H-0247 (H0611-009), Nov. 15, 2006, 26 pages.
  • Cavazos, John et al., "Automatic Tuning of Inlining Heuristics", Proceedings of the 2005 ACM/IEEE SC Conference (SC'05), Seattle, Washington, Nov. 12-18, 2005, 11 pages.
  • Chakrabarti, Dhruva R. et al., "Inline Analysis: Beyond Selection Heuristics", Proceedings of the International Symposium on Code Generation and Optimization (CGO'06), New York, New York, Mar. 26-29, 2006, 12 pages.
  • Chang, Pohua P. et al., "Profile-guided Automatic Inline Expansion for C Programs", Software-Practice and Experience, vol. 22(5), Received Apr. 15, 1991, Revised Nov. 1991, Published May 1992, 21 pages.