Optimism in Equality Saturation

PLDI 2026, November 2025
BibTeX
@article{optimism-eqsat,
  author = {Arbore, Russel and Cheung, Alvin and Willsey, Max},
  title = {Optimism in Equality Saturation},
  year = {2025},
  journal = {arXiv preprint arXiv:2511.20782},
}

Abstract

Equality saturation is a technique for program optimization based on non-destructive rewriting and a form of program analysis called e-class analysis. The current form of e-class analysis is pessimistic and therefore ineffective at analyzing cyclic programs, such as those in SSA form. We propose an abstract interpretation algorithm that can precisely analyze cycles during equality saturation. This results in a unified algorithm for optimistic analysis and non-destructive rewriting. We instantiate this approach on a prototype abstract interpreter for SSA programs using a new semantics of SSA. Our prototype can analyze simple example programs more precisely than clang and gcc.