Skip to content

perf: optimizations for the simp compiler pass#12409

Draft
Rob23oba wants to merge 5 commits intoleanprover:masterfrom
Rob23oba:simp-cases-opts
Draft

perf: optimizations for the simp compiler pass#12409
Rob23oba wants to merge 5 commits intoleanprover:masterfrom
Rob23oba:simp-cases-opts

Conversation

@Rob23oba
Copy link
Contributor

This PR adds optimizations to the simp compiler pass that will be useful for #8309.

@Rob23oba
Copy link
Contributor Author

!bench

@leanprover-radar
Copy link

leanprover-radar commented Feb 10, 2026

Benchmark results for f8d07cd against 4cdc199 are in! @Rob23oba

  • build//instructions: -19.9G (-0.16%)

Large changes (2✅)

  • size/all/.ir//bytes: -2MiB (-0.61%)
  • size/all/.olean.private//bytes: -7MiB (-0.61%)

Medium changes (5✅, 2🟥)

  • big_do//instructions: -43.4M (-0.17%)
  • build/module/Lean.Elab.PreDefinition.Main//bytes .olean.private: -682kiB (-25.89%)
  • build/module/Lean.Elab.PreDefinition.Main//instructions: -1.6G (-11.74%) (reduced significance based on absolute threshold)
  • build/module/Std.Do.SPred.Notation//bytes .olean: -138kiB (-26.77%)
  • 🟥 ilean roundtrip//instructions: +67.1M (+0.25%)
  • 🟥 parser//instructions: +78.3M (+0.19%)
  • workspaceSymbols with new ranges//instructions: -39.3M (-4.96%)

Small changes (114✅, 21🟥)

Too many entries to display here. View the full report on radar instead.

@github-actions github-actions bot added the toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN label Feb 10, 2026
@leanprover-bot
Copy link
Collaborator

Reference manual CI status:

  • ❗ Reference manual CI can not be attempted yet, as the nightly-testing-2026-02-10 tag does not exist there yet. We will retry when you push more commits. If you rebase your branch onto nightly-with-manual, reference manual CI should run now. You can force reference manual CI using the force-manual-ci label. (2026-02-10 15:17:56)

mathlib-nightly-testing bot pushed a commit to leanprover-community/batteries that referenced this pull request Feb 10, 2026
@github-actions github-actions bot added the mathlib4-nightly-available A branch for this PR exists at leanprover-community/mathlib4-nightly-testing:lean-pr-testing-NNNN label Feb 10, 2026
mathlib-nightly-testing bot pushed a commit to leanprover-community/mathlib4-nightly-testing that referenced this pull request Feb 10, 2026
@mathlib-lean-pr-testing mathlib-lean-pr-testing bot added the builds-mathlib CI has verified that Mathlib builds against this PR label Feb 10, 2026
@mathlib-lean-pr-testing
Copy link

Mathlib CI status (docs):

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

builds-mathlib CI has verified that Mathlib builds against this PR mathlib4-nightly-available A branch for this PR exists at leanprover-community/mathlib4-nightly-testing:lean-pr-testing-NNNN toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants