HPCguy/Squint

apply_ptr_cleanup optimization is buggy

Opened this issue · 1 comments

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.

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