google/souper
A superoptimizer for LLVM IR observed · 2026-08-28
Health v2 · maintenance only
10/100
- Activity 0
- Release rhythm 35
- Longevity 100
Flags: no_releases archived
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 4534
- days_rel: n/a
- days_push: 735
- n_releases_24m: 0
Adoption not part of the score
2389 stars · 189 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
Souper is a superoptimizer for LLVM IR that uses SMT solvers (like Z3) to synthesize shorter, equivalent instruction sequences. It identifies missing peephole optimizations in LLVM's midend optimizers and can either report them or apply them via an LLVM opt pass.
Use cases
- find missed peephole optimizations in LLVM IR
- superoptimize compiled bitcode to shorter instruction sequences
- automatically apply synthesized optimizations via an LLVM opt pass
- test and improve LLVM's optimizer by discovering refinement opportunities
- verify instruction-level equivalence of code using an SMT solver
When to choose
- you are developing or testing LLVM's optimizer and want to find missing peephole optimizations
- you need minimal instruction sequences for hot code paths and can tolerate slow synthesis
- you want to use SMT-based program synthesis on LLVM bitcode
When to avoid
- you need fast, general-purpose compilation — superoptimization is computationally expensive
- you work with languages or IRs other than LLVM IR
- you need a turnkey optimizer without building LLVM dependencies yourself
Facets
cli-tool · maturity active
compiler developer-tools testing compilers developer-tools performance cpp superoptimizer llvm-ir smt-solver peephole-optimization program-synthesis z3 linux macos llvm
1 source
- readme: https://github.com/google/souper · fetched 2026-08-28 · f10ee4189bdf
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| google/souper | main | 10 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem