arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1810.00905cs.PL
收藏

Codestitcher:跨过程基本块布局优化

Codestitcher: Inter-Procedural Basic Block Layout Optimization

Rahman Lavaee, John Criswell, Chen Ding

摘要:

现代软件执行大量的代码。代码布局优化的先前技术是在一或二十年前开发的,并且已经变得不足以应付诸如编译器、浏览器、解释器、语言VM和共享库之类的新型应用的规模和复杂性。本文介绍了Codestitcher,一个跨过程的基本块代码布局优化器,重新排序的基本块在一个可执行文件中受益于更好的缓存和TLB性能。Codestitcher提供了一个分层的框架,可以用来提高存储层次结构的各个层中的局部性。我们的评估表明,Codestitcher在5个广泛使用的大代码大小的应用程序(MySQL,Clang,Firefox,Apache和Python)上将原始程序的性能提高了3%到25%(平均10%)。它给出了一个额外的改进LLVM的PGO的4%和3%以上的PGO结合最佳功能重排序技术。

英文摘要:

Modern software executes a large amount of code. Previous techniques of code layout optimization were developed one or two decades ago and have become inadequate to cope with the scale and complexity of new types of applications such as compilers, browsers, interpreters, language VMs and shared libraries. This paper presents Codestitcher, an inter-procedural basic block code layout optimizer which reorders basic blocks in an executable to benefit from better cache and TLB performance. Codestitcher provides a hierarchical framework which can be used to improve locality in various layers of the memory hierarchy. Our evaluation shows that Codestitcher improves the performance of the original program by 3\% to 25\% (on average, by 10\%) on 5 widely used applications with large code sizes: MySQL, Clang, Firefox, Apache, and Python. It gives an additional improvement of 4\% over LLVM's PGO and 3\% over PGO combined with the best function reordering technique.

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

↑