The reviewed record of science sign in
Pith

arxiv: 2505.09363 · v2 · pith:GEL5SMO2 · submitted 2025-05-14 · cs.PL

eqsat: An Equality Saturation Dialect for Non-destructive Rewriting

Reviewed by Pithpith:GEL5SMO2open to challenge →

classification cs.PL
keywords equalitysaturationmlircompilereqsatpassesprogramapproach
0
0 comments X
read the original abstract

With recent algorithmic improvements and easy-to-use libraries, equality saturation is being picked up for hardware design, program synthesis, theorem proving, program optimization, and more. Existing work on using equality saturation for program optimization makes use of external equality saturation libraries such as egg, typically generating a single optimized expression. In the context of a compiler, such an approach uses equality saturation to replace a small number of passes. In this work, we propose an alternative approach that represents equality saturation natively in the compiler's intermediate representation, facilitating the application of constructive compiler passes that maintain the e-graph state throughout the compilation flow. We take LLVM's MLIR framework and propose a new MLIR dialect named eqsat that represents e-graphs in MLIR code. This not only provides opportunities to rethink e-matching and extraction techniques by orchestrating existing MLIR passes, such as common subexpression elimination, but also avoids translation overhead between the chosen e-graph library and MLIR. Our eqsat intermediate representation (IR) allows programmers to apply equality saturation on arbitrary domain-specific IRs using the same flow as other compiler transformations in MLIR.

This paper has not been read by Pith yet.

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.

Forward citations

Cited by 2 Pith papers

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score.

  1. Practical Formal Verification for MLIR Programs

    cs.PL 2026-05 unverdicted novelty 5.0

    A hybrid concrete-symbolic verifier checks MLIR program equivalence in linear time for a supported subset and is applied to AMD MLIR-AIR, MLIR-AIE, and mlir-opt on hundreds of benchmarks.

  2. Aquas: Enhancing Domain Specialization through Holistic Hardware-Software Co-Optimization based on MLIR

    cs.AR 2025-11 unverdicted novelty 5.0

    Aquas delivers a holistic hardware-software co-optimization framework on MLIR that models memory interfaces with cache effects and uses an e-graph retargetable compiler, achieving up to 15.61x speedup with 14.5% area ...