Year: 2018
Type: conference-paper
Abstract: Inlining is an important optimization technique in any modern compiler, though the description of this technique in the literature is informal and vague. We describe a technique for inlining, designed to work on a flow graph of instructions of intermediate code. Our technique uses local graph rewriting, making the semantic correctness of this technique obvious. In addition, we prove that the algorithm terminates. As a direct result of the preservation of the semantics of the program after each local rewriting step, the algorithm can stop after any iteration, resulting in a partial inlining of the called function. Such partial inlining can be advantageous in order to avoid the inlining of code that is not performance critical, in particular for creating arguments and calls to error-signaling functions.
Source: HAL
Authors: Durand, Irène, Strandh, Robert
Language: English
Subfield: Software
Field: Computer Science
Domain: Physical Sciences
Open Access status: green
Funder: Agence Nationale de la Recherche
OpenAlex ID: W2991584600
