paperbot · PL 论文追踪

全部论文 待读 收藏

P2 MISAAL: Synthesis-Based Automatic Generation of Efficient and Retargetable Semantics-Driven Optimizations

MISAAL:基于合成的自动生成高效且可重定向的语义驱动优化
PLDI 9(PLDI)2025匹配度 3/10 · 论文属于程序合成与编译器优化,利用硬件指令形式语义剪枝重写规则并生成优化代码,与用户核心关注的 LLM/Agent 驱动的静态分析、形式化验证、浮点程序分析或贝叶斯程序分析没有直接交集;仅与 PL 中的形式化方法和机器学习负载编译有边缘关联。引用 2 inbox
Abdul Rafae Noor, Dhruv Baronia, Akash Kothari, Muchen Xu, Charith Mendis, Vikram S. Adve
crossref: 2026-09-10

AI 速览

一句话:Misaal 用硬件指令形式语义离线剪枝重写规则、在线轻量项重写,实现快速可重定向的合成优化编译器。

基于程序合成的编译器能自动为输入程序选择指令并进行优化,但现有方法合成时间常达数分钟甚至数小时,且难以扩展到现代复杂计算与数据重排指令,而这些指令对张量和模板计算性能至关重要。Misaal 在离线阶段利用硬件指令的形式语义自动剪枝面向现代复杂指令的大规模重写规则搜索空间,并提出一种使在线(编译期)项重写过程极为轻量的新方法,从而让程序在数秒内完成编译。实验表明,与最先进的合成编译器 Hydride 相比,Misaal 将编译时间最多降低几何平均 16 倍;在 x86、Hexagon 和 ARM 上,对图像处理和深度学习负载,其运行时性能与生产编译器 Halide 及 Hydride 相比具有竞争力。

问题
现有基于程序合成的编译器合成时间过长,且难以处理现代复杂计算与数据重排指令,导致难以部署到生产编译器中。
方法
Misaal 离线利用硬件指令形式语义剪枝重写规则搜索空间,并设计轻量在线项重写流程,以自动生成高效、可重定向的语义驱动优化。
评估
在图像处理和深度学习负载上,与 Hydride 比较编译时间,并与 Halide 和 Hydride 在 x86、Hexagon 和 ARM 上比较运行时性能。
原文摘要(Abstract)

Using program synthesis to select instructions for and optimize input programs is receiving increasing attention. However, existing synthesis-based compilers are faced by two major challenges that prohibit the deployment of program synthesis in production compilers: exorbitantly long synthesis times spanning several minutes and hours; and scalability issues that prevent synthesis of complex modern compute and data swizzle instructions, which have been found to maximize performance of modern tensor and stencil workloads. This paper proposes Misaal , a synthesis-based compiler that employs a novel strategy to use formal semantics of hardware instructions to automatically prune a large search space of rewrite rules for modern complex instructions in an offline stage. Misaal also proposes a novel methodology to make term-rewriting process in the online stage (at compile-time) extremely lightweight so as to enable programs to compile in seconds. Our results show that Misaal reduces compilation times by up to a geomean of 16x compared to the state-of-theart synthesis-based compiler, Hydride . Misaal also delivers competitive runtime performance against the production compiler for image processing and deep learning workloads, Halide, as well as Hydride across x86, Hexagon and ARM.

链接与引用

DOI 原文 · PDF(开放获取) ·

BibTeX
@article{paperbot3081,
  title = {MISAAL: Synthesis-Based Automatic Generation of Efficient and Retargetable Semantics-Driven Optimizations},
  author = {Abdul Rafae Noor and Dhruv Baronia and Akash Kothari and Muchen Xu and Charith Mendis and Vikram S. Adve},
  journal = {Proceedings of the ACM on Programming Languages},
  volume = {9},
  number = {PLDI},
  year = {2025},
  doi = {10.1145/3729301}
}