Improved batch elimination: A fast algorithm to identify and remove harmful compiler optimizations

Ewerton Daniel de Lima, A. F. Silva
{"title":"Improved batch elimination: A fast algorithm to identify and remove harmful compiler optimizations","authors":"Ewerton Daniel de Lima, A. F. Silva","doi":"10.1109/CLEI.2015.7360010","DOIUrl":null,"url":null,"abstract":"Modern compilers provide several optimizations that can be applied to the source code, in order to increase its performance. Due to the complex relationship between various optimizations, discovering harmful compiler optimizations is a problem in the context of compilers. Strategies based on iterative compilation try to solve this problem evaluating the performance of the compiled program using different sets. In this context, Combined Elimination is an efficient iterative compilation strategy. The purpose of Combined Elimination is to identify the harmful optimizations and remove them in an iterative compilation process. Combined Elimination provides good results, which are close to those founded by an exhaustive search approach. However, its drawback is the number of program runs. In this paper, we proposed an iterative compilation algorithm, named Improved Batch Elimination. This algorithm is based on the first step towards Combined Elimination, the Batch Elimination algorithm. The goal of Improved Batch Elimination is to produce results similar to Combined Elimination, with a complexity similar to Batch Elimination. In other words, the goal is to produce good results and to be faster than Combined Elimination. We evaluate our algorithm by measuring the performance of Spec Cpu2006, Polybench and cBench benchmarks under a set of llvm compiler optimizations. The results indicate that Improved Batch Elimination is a good strategy to remove harmful compiler optimizations, using few program runs.","PeriodicalId":263586,"journal":{"name":"Latin American Computing Conference / Conferencia Latinoamericana En Informatica","volume":"4 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2015-12-17","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"2","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Latin American Computing Conference / Conferencia Latinoamericana En Informatica","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/CLEI.2015.7360010","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 2

Abstract

Modern compilers provide several optimizations that can be applied to the source code, in order to increase its performance. Due to the complex relationship between various optimizations, discovering harmful compiler optimizations is a problem in the context of compilers. Strategies based on iterative compilation try to solve this problem evaluating the performance of the compiled program using different sets. In this context, Combined Elimination is an efficient iterative compilation strategy. The purpose of Combined Elimination is to identify the harmful optimizations and remove them in an iterative compilation process. Combined Elimination provides good results, which are close to those founded by an exhaustive search approach. However, its drawback is the number of program runs. In this paper, we proposed an iterative compilation algorithm, named Improved Batch Elimination. This algorithm is based on the first step towards Combined Elimination, the Batch Elimination algorithm. The goal of Improved Batch Elimination is to produce results similar to Combined Elimination, with a complexity similar to Batch Elimination. In other words, the goal is to produce good results and to be faster than Combined Elimination. We evaluate our algorithm by measuring the performance of Spec Cpu2006, Polybench and cBench benchmarks under a set of llvm compiler optimizations. The results indicate that Improved Batch Elimination is a good strategy to remove harmful compiler optimizations, using few program runs.
改进的批处理消除:识别和删除有害编译器优化的快速算法
现代编译器提供了一些可以应用于源代码的优化,以提高其性能。由于各种优化之间的复杂关系,在编译器上下文中发现有害的编译器优化是一个问题。基于迭代编译的策略试图用不同的集合来评估编译后程序的性能。在这种情况下,组合消去是一种有效的迭代编译策略。组合消除的目的是识别有害的优化,并在迭代编译过程中删除它们。联合消去法的结果很好,接近穷举搜索法的结果。然而,它的缺点是程序运行的次数太多。本文提出了一种迭代编译算法——改进批消除算法。该算法是基于第一步的组合消除,批量消除算法。改进批消除的目标是产生类似于组合消除的结果,具有类似于批消除的复杂性。换句话说,目标是产生好的结果,并且比联合消除更快。我们通过在一组llvm编译器优化下测量Spec Cpu2006, Polybench和cBench基准测试的性能来评估我们的算法。结果表明,改进的批消除是一个很好的策略,以消除有害的编译器优化,使用很少的程序运行。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信