skip to main content
10.1145/3520304.3534000acmconferencesArticle/Chapter ViewAbstractPublication PagesgeccoConference Proceedingsconference-collections
research-article

Genetic improvement in the shackleton framework for optimizing LLVM pass sequences

Published:19 July 2022Publication History

ABSTRACT

Genetic Improvement is a search technique that aims to improve a given acceptable solution to a problem. In this paper, we present the novel use of genetic improvement to find problem-specific optimized LLVM Pass sequences. We develop a Pass-level edit representation in the linear genetic programming framework, Shackleton, to evolve the modifications to be applied to the default optimization Pass sequences. Our GI-evolved solution has a mean of 3.7% runtime improvement compared to the default LLVM optimization level '-O3' which targets runtime. The proposed GI method provides an automatic way to find a problem-specific optimization sequence that improves upon a general solution without any expert domain knowledge. In this paper, we discuss the advantages and limitations of the GI feature in the Shackleton Framework and present our results.

References

  1. Wolfgang Banzhaf, Peter Nordin, Robert Keller, and Frank Francone. 1998. Genetic Programming- An Introduction. Morgan Kaufmann, San Francisco.Google ScholarGoogle Scholar
  2. Markus Brameier and Wolfgang Banzhaf. 2007. Linear Genetic Programming. Springer, New York.Google ScholarGoogle Scholar
  3. Charles Darwin. 1859. On the Origin of Species by Means of Natural Selection. John Murray, London.Google ScholarGoogle Scholar
  4. John Holland. 1975. Adaptation in Natural and Artificial Systems. MIT Press, Cambridge.Google ScholarGoogle ScholarDigital LibraryDigital Library
  5. John R Koza. 1992. Genetic Programming. MIT Press, Cambridge.Google ScholarGoogle Scholar
  6. William B Langdon and Mark Harman. 2014. Optimizing existing software with genetic programming. IEEE Transactions on Evolutionary Computation 19, 1 (2014), 118--135.Google ScholarGoogle ScholarDigital LibraryDigital Library
  7. Chris Lattner. 2006. Introduction to the llvm compiler infrastructure. In Itanium conference and expo.Google ScholarGoogle Scholar
  8. Chris Lattner. 2008. LLVM and Clang: Next generation compiler technology. In BSD Conference BSDCan 2008 (University of Ottawa, Canada).Google ScholarGoogle Scholar
  9. Hannah Peeler, Shuyue Stella Li, Andrew N Sloss, Kenneth N Reid, Yuan Yuan, and Wolfgang Banzhaf. 2022. Optimizing LLVM Pass Sequences with Shackleton: A Linear Genetic Programming Framework. arXiv preprint arXiv:2201.13305 (2022).Google ScholarGoogle Scholar
  10. Suyog Sarda and Mayur Pandey. 2015. LLVM essentials. Packt Publishing Ltd.Google ScholarGoogle Scholar

Index Terms

  1. Genetic improvement in the shackleton framework for optimizing LLVM pass sequences

      Recommendations

      Comments

      Login options

      Check if you have access through your login credentials or your institution to get full access on this article.

      Sign in
      • Published in

        cover image ACM Conferences
        GECCO '22: Proceedings of the Genetic and Evolutionary Computation Conference Companion
        July 2022
        2395 pages
        ISBN:9781450392686
        DOI:10.1145/3520304

        Copyright © 2022 ACM

        Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

        Publisher

        Association for Computing Machinery

        New York, NY, United States

        Publication History

        • Published: 19 July 2022

        Permissions

        Request permissions about this article.

        Request Permissions

        Check for updates

        Qualifiers

        • research-article

        Acceptance Rates

        Overall Acceptance Rate1,669of4,410submissions,38%

        Upcoming Conference

        GECCO '24
        Genetic and Evolutionary Computation Conference
        July 14 - 18, 2024
        Melbourne , VIC , Australia

      PDF Format

      View or Download as a PDF file.

      PDF

      eReader

      View online with eReader.

      eReader