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

apply_ptr_cleanup optimization is buggy #67

Open
HPCguy opened this issue Aug 18, 2022 · 1 comment
Open

apply_ptr_cleanup optimization is buggy #67

HPCguy opened this issue Aug 18, 2022 · 1 comment

Comments

@HPCguy
Copy link
Owner

HPCguy commented Aug 18, 2022

This is the most powerful optimization in Squint, but is
currently buggy due to some missing dependency checks.

Since this repository is a Work In Progress,
and since all repository tests are passing,
I am not going to disable apply_ptr_cleanup as I work to fix it.

To disable this optimization, go into squint.c and comment out
the only call to the apply_ptr_cleanup function near the end of the file.

@HPCguy
Copy link
Owner Author

HPCguy commented Sep 6, 2024

Run the peephole optimizer with the -e option as a workaraound:

> ./mc -Op -o foo.exe foo.c
> scripts/peep foo.exe -e
> ./foo.exe

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

No branches or pull requests

1 participant