Mitigating the compiler optimization phase-ordering problem using machine learning

Author:

Kulkarni Sameer1,Cavazos John1

Affiliation:

1. University of Delaware, Newark, DE, USA

Abstract

Today's compilers have a plethora of optimizations to choose from, and the correct choice of optimizations can have a significant impact on the performance of the code being optimized. Furthermore, choosing the correct order in which to apply those optimizations has been a long standing problem in compilation research. Each of these optimizations interacts with the code and in turn with all other optimizations in complicated ways. Traditional compilers typically apply the same set of optimization in a fixed order to all functions in a program, without regard the code being optimized. Understanding the interactions of optimizations is very important in determining a good solution to the phase-ordering problem. This paper develops a new approach that automatically selects good optimization orderings on a per method basis within a dynamic compiler. Our approach formulates the phase-ordering problem as a Markov process and uses a characterization of the current state of the code being optimized to creating a better solution to the phase ordering problem. Our technique uses neuro-evolution to construct an artificial neural network that is capable of predicting beneficial optimization ordering for a piece of code that is being optimized. We implemented our technique in Jikes RVM and achieved significant improvements on a set of standard Java benchmarks over a well-engineered fixed order.

Publisher

Association for Computing Machinery (ACM)

Subject

Computer Graphics and Computer-Aided Design,Software

Reference31 articles.

1. Dacapo benchmark suite. URL http://dacapobench.org/benchmarks.html. Dacapo benchmark suite. URL http://dacapobench.org/benchmarks.html.

2. Using Machine Learning to Focus Iterative Optimization

3. Finding effective compilation sequences

4. The Jalapeño virtual machine

5. Method-specific dynamic compilation using logistic regression

Cited by 55 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. Compiler Auto-Tuning via Critical Flag Selection;2023 38th IEEE/ACM International Conference on Automated Software Engineering (ASE);2023-09-11

2. Efficiently Learning Locality Optimizations by Decomposing Transformation Domains;Proceedings of the 32nd ACM SIGPLAN International Conference on Compiler Construction;2023-02-17

3. Enabling Transformers to Understand Low-Level Programs;2022 IEEE High Performance Extreme Computing Conference (HPEC);2022-09-19

4. Compiler Optimization Parameter Selection Method Based on Ensemble Learning;Electronics;2022-08-06

5. LocSeq: Automated Localization for Compiler Optimization Sequence Bugs of LLVM;IEEE Transactions on Reliability;2022-06

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3