Abstract
Instance-based locality optimization [6] is a semi-automatic program restructuring method that reduces the number of cache misses. The method imitates the human approach of considering several small program instances, optimizing the instances, and generalizing the structure of the solutions to the program under consideration. A program instance appears as a sequence of statement instances that are reordered for better locality. In [6], a local search algorithm was introduced that reorders the statement instances automatically.
This paper supplements [6] by introducing a second objective into the optimization algorithm for program instances: regularity. A sequence of statement instances is called regular if it can be written compactly using loops. We quantify the intuitive notion of regularity in an objective function, and incorporate this function into the local search algorithm. The functionality of the compound algorithm is demonstrated with examples, that also show trade-offs between locality and regularity.
Preview
Unable to display preview. Download preview PDF.
References
Aarts, E.H.L. and Lenstra, J.K.: Local Search in Combinatorial Optimization. Wiley, 1997
Cifuentes, C.: Structuring Decompiled Graphs. Int. Conf. on Compiler Construction, 1996, LNCS 1060, 91–105
Fenton, N.E.: Software Metrics—A Rigorous Approach. Chapman & Hall, 1991, Chapter 10
LaMarca, A. and Ladner, R.E.: The Influence of Caches on the Performance of Sorting. Proc. ACM SIGPLAN Symp. on Discrete Algorithms, 1997, 370–379
Koza, J.R.: Genetic Programming II. MIT Press, 1994
Leopold, C.: Arranging Statements and Data of Program Instances for Locality. Future Generation Computer Systems (to appear)
Muchnick, S.S.: Advanced Compiler Design and Implementation. Morgan Kaufmann, 1997
Wolf, M.E. and Lam, M.S.: A Data Locality Optimizing Algorithm. Proc. ACM SIGPLAN’91 Conf. on Programming Language Design and Implementation, 1991, 30–44
Author information
Authors and Affiliations
Editor information
Rights and permissions
Copyright information
© 1999 Springer-Verlag
About this paper
Cite this paper
Leopold, C. (1999). Regularity considerations in instance-based locality optimization. In: Rolim, J., et al. Parallel and Distributed Processing. IPPS 1999. Lecture Notes in Computer Science, vol 1586. Springer, Berlin, Heidelberg. https://doi.org/10.1007/BFb0097904
Download citation
DOI: https://doi.org/10.1007/BFb0097904
Published:
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-65831-3
Online ISBN: 978-3-540-48932-0
eBook Packages: Springer Book Archive