亲爱的研友该休息了!由于当前在线用户较少,发布求助请尽量完整地填写文献信息,科研通机器人24小时在线,伴您度过漫漫科研夜!身体可是革命的本钱,早点休息,好梦!

A graph-based iterative compiler pass selection and phase ordering approach

编译程序 计算机科学 过程间优化 加速 并行计算 优化编译器 管道(软件) 图形 循环优化 绩效改进 算法 理论计算机科学 程序设计语言 运营管理 经济
作者
Ricardo Nobre,Luiz G. A. Martins,João M. P. Cardoso
标识
DOI:10.1145/2907950.2907959
摘要

Nowadays compilers include tens or hundreds of optimization passes, which makes it difficult to find sequences of optimizations that achieve compiled code more optimized than the one obtained using typical compiler options such as -O2 and -O3. The problem involves both the selection of the compiler passes to use and their ordering in the compilation pipeline. The improvement achieved by the use of custom phase orders for each function can be significant, and thus important to satisfy strict requirements such as the ones present in high-performance embedded computing systems. In this paper we present a new and fast iterative approach to the phase selection and ordering challenges resulting in compiled code with higher performance than the one achieved with the standard optimization levels of the LLVM compiler. The obtained performance improvements are comparable with the ones achieved by other iterative approaches while requiring considerably less time and resources. Our approach is based on sampling over a graph representing transitions between compiler passes. We performed a number of experiments targeting the LEON3 microarchitecture using the Clang/LLVM 3.7 compiler, considering 140 LLVM passes and a set of 42 representative signal and image processing C functions. An exhaustive cross-validation shows our new exploration method is able to achieve a geometric mean performance speedup of 1.28x over the best individually selected -OX flag when considering 100,000 iterations; versus geometric mean speedups from 1.16x to 1.25x obtained with state-of-the-art iterative methods not using the graph. From the set of exploration methods tested, our new method is the only one consistently finding compiler sequences that result in performance improvements when considering 100 or less exploration iterations. Specifically, it achieved geometric mean speedups of 1.08x and 1.16x for 10 and 100 iterations, respectively.

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
耍酷的卿发布了新的文献求助10
4秒前
王宇选完成签到,获得积分20
20秒前
PengDai发布了新的文献求助10
23秒前
Yinxb的应助被dyr采纳,获得20
36秒前
plum完成签到 ,获得积分10
43秒前
长情的小蕾完成签到,获得积分10
43秒前
专注寒蕾完成签到,获得积分10
45秒前
明亮的傲玉完成签到,获得积分20
50秒前
火星上的母鸡完成签到,获得积分10
51秒前
53秒前
56秒前
诸葛明明发布了新的文献求助10
1分钟前
含糊的盼波完成签到,获得积分10
1分钟前
健壮的灯泡完成签到,获得积分10
1分钟前
2分钟前
2分钟前
2分钟前
2分钟前
2分钟前
dnpl完成签到,获得积分10
2分钟前
老实的石头完成签到,获得积分10
2分钟前
刻苦若之的应助被科研通管家采纳,获得10
2分钟前
2分钟前
wanci的应助被科研通管家采纳,获得10
2分钟前
清脆的飞阳完成签到,获得积分10
2分钟前
贤惠的诗柳完成签到,获得积分10
2分钟前
大个的应助被鲜于之玉采纳,获得10
3分钟前
辛勤的冰珍完成签到,获得积分10
3分钟前
3分钟前
儒雅半双完成签到,获得积分10
3分钟前
鲜于之玉发布了新的文献求助10
3分钟前
krajicek完成签到,获得积分0
3分钟前
4分钟前
4分钟前
4分钟前
脑洞疼的应助被钮钴禄卤肉饭采纳,获得10
4分钟前
洁净凡波完成签到,获得积分10
4分钟前
ASRI12349发布了新的文献求助10
4分钟前
震动的醉蓝完成签到,获得积分10
4分钟前
4分钟前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
Aspects of Post-SPE Phonology 2000
Nanocomposite Removal of Pesticides from Wastewater 1000
Rosenblum, Global Change Biology 800
Final Report for the 2-D Test of Model 901 Rotor and Wing Airfoils (BSWT 592) 528
Berberine regulates the TLR4 signaling pathway to suppress hypoxia-induced proliferation and migration of pulmonary arterial smooth muscle cells 520
Organizational Behavior 510
热门求助领域 (近24小时)
化学 材料科学 医学 生物 计算机科学 工程类 纳米技术 物理 有机化学 化学工程 内科学 生物化学 复合材料 催化作用 心理学 细胞生物学 无机化学 电极 光电子学 人工智能
热门帖子
关注 科研通微信公众号,转发送积分 7893721
求助须知:如何正确求助?哪些是违规求助? 9403740
关于积分的说明 20859104
捐赠科研通 7497045
什么是DOI,文献DOI怎么找? 3358846
关于科研通互助平台的介绍 2497132
邀请新用户注册赠送积分活动 2387926