8000 fix: make unsafeBaseIO noinline by zwarich · Pull Request #8669 · leanprover/lean4 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix: make unsafeBaseIO noinline #8669

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 9, 2025

Conversation

zwarich
Copy link
Contributor
@zwarich zwarich commented Jun 6, 2025

This PR makes unsafeBaseIO noinline. The new compiler is better at optimizing Result-like types, which can cause the final operation in an unsafeBaseIO block to be dropped, since unsafeBaseIO is discarding the state.

@zwarich zwarich requested a review from leodemoura June 6, 2025 23:28
@zwarich zwarich added the changelog-library Library label Jun 6, 2025
@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 Jun 6, 2025
@leanprover-community-bot
Copy link
Collaborator

Mathlib CI status (docs):

  • ❗ Batteries/Mathlib CI will not be attempted unless your PR branches off the nightly-with-mathlib branch. Try git rebase d50292d31b4c79e6d67d70a8872a1198423afde4 --onto 9b9dd8546a123d746580649b239f26c26d370d20. You can force Mathlib CI using the force-mathlib-ci label. (2025-06-06 23:59:48)

@zwarich zwarich added this pull request to the merge queue Jun 9, 2025
Merged via the queue into leanprover:master with commit f61a412 Jun 9, 2025
18 checks passed
algebraic-dev pushed a commit to algebraic-dev/lean4 that referenced this pull request Jun 18, 2025
This PR makes `unsafeBaseIO` `noinline`. The new compiler is better at
optimizing `Result`-like types, which can cause the final operation in
an `unsafeBaseIO` block to be dropped, since `unsafeBaseIO` is
discarding the state.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog-library Library 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.

2 participants
0