MileStone:一种面向基于图的IR级优化的多目标编译器阶段排序框架
MileStone: A Multi-Objective Compiler Phase Ordering Framework for Graph-based IR-Level Optimization
AI总结:
提出MileStone框架,将编译器阶段排序建模为多目标优化问题,利用图神经网络预测性能,并通过强化学习代理探索满足用户约束的优化序列,实现执行时间、代码大小和能耗的Pareto最优权衡。
摘要:
编译器阶段排序对程序性能有显著影响。由于搜索空间大且执行时间、代码大小和能耗经常冲突,找到有效的优化序列仍然是一项困难的任务。现有方法通常依赖于固定的优化级别或有限的启发式方法,很少同时处理多个目标。本文提出了MileStone,一个模块化框架,将编译器阶段排序建模为多目标优化问题。MileStone将程序表示为图,使用图神经网络预测性能指标,并通过遵循用户约束的强化学习代理探索优化序列。该框架还构建了一个自进化数据库,收集编译器转换并提高预测质量。在标准基准测试上的实验表明,MileStone找到了强大的Pareto最优解,在满足能量限制方面比LLVM优化级别和其他相关技术更准确。MileStone在多目标方法下,在相同能量预算内将执行时间减少了高达45%。结果表明,MileStone为多目标编译器阶段排序提供了一种有效且可扩展的解决方案。
英文摘要:
Compiler phase ordering has a strong effect on program performance. Finding an effective sequence of passes is still a difficult task because the search space is large and execution time, code size and energy consumption often conflict. Existing methods usually depend on fixed optimization levels or limited heuristics and they rarely handle multiple objectives at the same time. This paper presents MileStone, a modular framework that models compiler phase ordering as a multi-objective optimization problem. MileStone represents programs as graphs, predicts performance metrics with a graph neural network and explores pass sequences with a reinforcement-learning agent that follows user constraints. The framework also builds a self-evolving database that collects compiler transformations and improves prediction quality. Experiments on standard benchmarks show that MileStone finds strong Pareto-optimal solutions, meets energy limits more accurately than LLVM optimization levels and other related techniques. MileStone reduces execution time by up to 45 percent under the same energy budget using a multi-objective approach. The results show that MileStone provides an effective and scalable solution for multi-objective compiler phase ordering.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。