arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 1903.11397cs.PL
收藏

迷失在翻译中:暴露隐藏的编译器优化机会

Lost in translation: Exposing hidden compiler optimization opportunities

Kyriakos Georgiou, Zbigniew Chamski, Andres Amaya Garcia, David May, Kerstin Eder

摘要:

现有的迭代编译和基于机器学习的优化技术已经被证明在实现比编译器的标准优化级别更好的优化方面非常成功。但是,它们并没有被设计为支持将编译器优化器的调优作为编译器日常开发周期的一部分。在本文中,我们首先建立所需的性能,一种技术必须表现出这样的调整。然后,我们介绍了一个增强的经典的夜间例行测试的编译器表现出所有必需的属性,因此,能够驱动编译器的共同优化器的改进和调整。这是通过利用收集的资源使用和编译信息来实现的,同时系统地利用在标准优化级别应用的转换的前缀。使用LLVM v6.0.1编译器进行的实验评估表明,新方法能够揭示两种流行处理器上隐藏的跨架构和依赖于架构的潜在优化:Intel i5- 6300 U和Raspberry Pi 3B+中使用的基于Arm Cortex-A53的Broadcom BCM 2837。作为一个案例研究,我们展示了如何从我们的方法的见解,使我们能够识别和删除一个显着的缺点的CFG简化通过LLVM v6.0.1编译器。

英文摘要:

Existing iterative compilation and machine-learning-based optimization techniques have been proven very successful in achieving better optimizations than the standard optimization levels of a compiler. However, they were not engineered to support the tuning of a compiler's optimizer as part of the compiler's daily development cycle. In this paper, we first establish the required properties which a technique must exhibit to enable such tuning. We then introduce an enhancement to the classic nightly routine testing of compilers which exhibits all the required properties, and thus, is capable of driving the improvement and tuning of the compiler's common optimizer. This is achieved by leveraging resource usage and compilation information collected while systematically exploiting prefixes of the transformations applied at standard optimization levels. Experimental evaluation using the LLVM v6.0.1 compiler demonstrated that the new approach was able to reveal hidden cross-architecture and architecture-dependent potential optimizations on two popular processors: the Intel i5-6300U and the Arm Cortex-A53-based Broadcom BCM2837 used in the Raspberry Pi 3B+. As a case study, we demonstrate how the insights from our approach enabled us to identify and remove a significant shortcoming of the CFG simplification pass of the LLVM v6.0.1 compiler.

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

↑