• DocumentCode
    2235676
  • Title

    Rapidly Selecting Good Compiler Optimizations using Performance Counters

  • Author

    Cavazos, John ; Fursin, Grigori ; Agakov, Felix ; Bonilla, Edwin ; Boyle, Michael F P O ; Temam, Olivier

  • Author_Institution
    Inst. for Comput. Syst. Archit., Edinburgh Univ.
  • fYear
    2007
  • fDate
    11-14 March 2007
  • Firstpage
    185
  • Lastpage
    197
  • Abstract
    Applying the right compiler optimizations to a particular program can have a significant impact on program performance. Due to the non-linear interaction of compiler optimizations, however, determining the best setting is non-trivial. There have been several proposed techniques that search the space of compiler options to find good solutions; however such approaches can be expensive. This paper proposes a different approach using performance counters as a means of determining good compiler optimization settings. This is achieved by learning a model off-line which can then be used to determine good settings for any new program. We show that such an approach outperforms the state-of-the-art and is two orders of magnitude faster on average. Furthermore, we show that our performance counter-based approach outperforms techniques based on static code features. Using our technique we achieve a 17% improvement over the highest optimization setting of the commercial PathScale EKOPath 2.3.1 optimizing compiler on the SPEC benchmark suite on a AMD Athlon 64 3700+ platform
  • Keywords
    optimising compilers; AMD Athlon 64 3700+ platform; PathScale EKOPath; SPEC benchmark suite; compiler optimizations; nonlinear interaction; Computer architecture; Counting circuits; Hardware; Informatics; Optimizing compilers; Performance analysis; Performance gain; Probability distribution; Production facilities; Program processors;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Code Generation and Optimization, 2007. CGO '07. International Symposium on
  • Conference_Location
    San Jose, CA
  • Print_ISBN
    0-7695-2764-7
  • Type

    conf

  • DOI
    10.1109/CGO.2007.32
  • Filename
    4145114