Back to search

University of Alberta

Guiding Inlining Decisions Using Post-Inlining Transformations

Abstract

dc:description.abstract

Inlining strategies in JIT compilers have relied on a mixture of heuristics and frequency information to discriminate between inlining candidates. Even though nested inlining is the norm in JIT compilers, modeling inlining as a variation of the greedy knapsack algorithm provides sub-optimal solutions. Recent advancements by Craik et al. allow for solutions for the nested inlining problem, however, they require grading inlining candidates based on an abstract notion of "benefit". In this thesis, we define this abstract notion of "benefit" through the use of static analysis and frequency information. The choice of using static analysis instead of heuristics has consequences on the guarantees that an inlining strategy provides and on the compilation time incurred by the compiler. We show that our proposed static analysis is comparable to heuristics in terms of compilation time, memory resources used during compilation, and impact on run time. While our proposed inlining strategy increased run time by 4% compared to the default inlining strategies found in the OpenJ9 JVM, our inlining strategy allows compiler engineers to fine tune the abstract notion of "benefit" and provides human readable reports that show why inlining decisions were taken. The number of proposed inlining plans that differ between the heuristics and the static analyses is small, however, it provides a lower bound for how more powerful static analyses may improve inlining in the future.

Degree

thesis:*
Name thesis:degree_name
Master of Science
Level thesis:degree_level
Master's
Grantor
University of Alberta
Year dc:date.issued
2019

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Ochoa, Erick E
Advisors dc:contributor.advisor
  • Ali, Karim (Computing Science)
  • Amaral, Nelson (Computing Science)

Subjects

dc:subject × 4

Rights

dc:rights
Statement dc:rights
  • Permission is hereby granted to the University of Alberta Libraries to reproduce single copies of this thesis and to lend or sell such copies for private, scholarly or scientific research purposes only. Where the thesis is converted to, or otherwise made available in digital form, the University of Alberta will advise potential users of the thesis of these terms. The author reserves all other publication and other rights in association with the copyright in the thesis and, except as herein before provided, neither the thesis nor any substantial portion thereof may be printed or otherwise reproduced in any material form whatsoever without the author's prior written permission.
Language dc:language.iso
en

Identifiers

dc:identifier.*
DOI dc:identifier.doi
https://doi.org/10.7939/r3-dk74-he24

Chain of custody

source
Harvested from
University of Alberta
Base URL
era.library.ualberta.ca/oai
Last updated
2026-11-26
Source record
OAI-PMH GetRecord
citation

Ochoa, Erick E. Guiding Inlining Decisions Using Post-Inlining Transformations. Master's thesis, University of Alberta, 2019. https://doi.org/10.7939/r3-dk74-he24