arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2112.14679cs.PLcs.LG
收藏

无轮廓的轮廓引导优化:一种机器学习方法

Profile Guided Optimization without Profiles: A Machine Learning Approach

Meta, Inc.(Meta公司);Meta AI

Nadav Rotem, Chris Cummins

摘要:

概要文件引导优化是一种基于动态行为提高编译器优化能力的有效技术,但收集概要文件数据昂贵、繁琐,并且需要定期更新以保持新鲜。我们提出了一种新颖的统计方法来推断分支概率,可以提高在没有配置文件引导优化的情况下编译的程序的性能。我们使用从具有分支概率信息的大型二进制语料库中收集的信息执行离线训练。编译器使用学习的模型来预测常规未插装程序的分支概率,然后编译器可以使用该分支概率来通知优化决策。我们将我们的技术直接集成在LLVM中,补充现有的人工工程编译器原理。我们评估我们的技术在一套基准测试,展示了一些收益编译没有配置文件信息。在部署中,我们的技术不需要分析运行,对编译时间的影响可以忽略不计。

英文摘要:

Profile guided optimization is an effective technique for improving the optimization ability of compilers based on dynamic behavior, but collecting profile data is expensive, cumbersome, and requires regular updating to remain fresh. We present a novel statistical approach to inferring branch probabilities that improves the performance of programs that are compiled without profile guided optimizations. We perform offline training using information that is collected from a large corpus of binaries that have branch probabilities information. The learned model is used by the compiler to predict the branch probabilities of regular uninstrumented programs, which the compiler can then use to inform optimization decisions. We integrate our technique directly in LLVM, supplementing the existing human-engineered compiler heuristics. We evaluate our technique on a suite of benchmarks, demonstrating some gains over compiling without profile information. In deployment, our technique requires no profiling runs and has negligible effect on compilation time.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑