Skip to content
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

Compiler flag to disable checkmach #2340

Merged
merged 2 commits into from
Mar 12, 2024

Conversation

gretay-js
Copy link
Contributor

@gretay-js gretay-js commented Mar 7, 2024

Add a compiler flag -disable-checkmach that disables the pass, i.e., both computation of summaries and checking of annotations will be disabled the computation of summaries, and assumes that all functions may allocate. This is not the same as -zero-alloc-check compilation flag that only control the checking and cannot turn off the analsyis and summary computation.

The motivation for adding -disable-checkmach flag is the change in #2290 that may have pathological cases when the analysis is very slow. The flag is intended as a temporary workaround, not a permanent solution for these situations, until the analysis fixpoint computation can be optimized. The downside is that in the meantime uses will fail the check.

@gretay-js gretay-js marked this pull request as draft March 7, 2024 15:19
@gretay-js gretay-js marked this pull request as ready for review March 7, 2024 15:22
@gretay-js gretay-js merged commit 5fb7700 into ocaml-flambda:main Mar 12, 2024
17 checks passed
gretay-js added a commit to gretay-js/flambda-backend that referenced this pull request Mar 19, 2024
* Add compiler flag -disable-checkmach

* Conservatively assume that all function summaries are Top
Forestryks pushed a commit to Forestryks/flambda-backend that referenced this pull request Mar 25, 2024
* Add compiler flag -disable-checkmach

* Conservatively assume that all function summaries are Top
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants