MISAAL: Synthesis-Based Automatic Generation of Efficient and Retargetable Semantics-Driven Optimizations
Open Access
- 10 June 2025
- journal article
- Published by Association for Computing Machinery (ACM) in Proceedings of the ACM on Programming Languages
- Vol. 9 (PLDI) , 1269-1292
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-the-art 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.Keywords
This publication has 13 references indexed in Scilit:
- Hydride: A Retargetable and Extensible Synthesis-based Compiler for Modern Hardware Architectures2024
- Automatic Generation of Vectorizing Compilers for Customizable Digital Signal Processors2024
- Better Together: Unifying Datalog and Equality SaturationProceedings of the ACM on Programming Languages, 2023
- Porcupine: a synthesizing compiler for vectorized homomorphic encryption2021
- Vectorization for digital signal processors via equality saturation2021
- MLIR: Scaling Compiler Infrastructure for Domain Specific Computation2021
- Architecture of the Hexagon™ 680 DSP for mobile imaging and computer vision2015
- A lightweight symbolic virtual machine for solver-aided host languages2014
- HalideACM SIGPLAN Notices, 2013
- Equality saturation2009