A comparative study of static and profile-based heuristics for inlining

  • Authors:
  • Matthew Arnold;Stephen Fink;Vivek Sarkar;Peter F. Sweeney

  • Affiliations:
  • Department of Computer Science, Rutgers, The State University of NJ;IBM Thomas J. Watson Research Center, P.O. Box 704, Yorktown Heights, NY;IBM Thomas J. Watson Research Center, P.O. Box 704, Yorktown Heights, NY;IBM Thomas J. Watson Research Center, P.O. Box 704, Yorktown Heights, NY

  • Venue:
  • DYNAMO '00 Proceedings of the ACM SIGPLAN workshop on Dynamic and adaptive compilation and optimization
  • Year:
  • 2000

Quantified Score

Hi-index 0.00

Visualization

Abstract

In this paper, we present a comparative study of static and profile-based heuristics for inlining. Our motivation for this study is to use the results to design the best inlining algorithm that we can for the Jalapeño dynamic optimizing compiler for Java [6]. We use a well-known approximation algorithm for the KNAPSACK problem as a common “meta-algorithm” for the inlining heuristics studied in this paper. We present performance results for an implementation of these inlining heuristics in the Jalapeño dynamic optimizing compiler. Our performance results show that the inlining heuristics studied in this paper can lead to significant speedups in execution time (up to 1.68x) even with modest limits on code size expansion (at most 10%).