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

scriptcomp: Don't generate dead MOVSP instructions when returning [WIP] #89

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mtijanic
Copy link
Collaborator

I don't know why this was disabled originally. Needs more testing before merging, leaving here as a WIP so others can test too.

Testing

Test suite, plus disassembly. More tests TBD.

Changelog

Fixed

  • Compiler will no longer generate dead MOVSP instructions when returning from a function

Licence

  • I am licencing my change under the project's MIT licence, including all changes to GPL-3.0 licenced parts of the codebase.

mtijanic added a commit that referenced this pull request Jul 22, 2023
Compiler is generating dead MOVSP instructions in some cases when
returning from a function, and merging a live one with a dead one causes
issues, unsurprisingly.

So, disabling merging until #89 is implemented properly.

## Testing

Added a test case that fails at TOT but passes with this change

## Changelog

### Fixed
- Fixed STACK_UNDERFLOW errors when compiling with `-O2`

## Licence

- [x] I am licencing my change under the project's MIT licence,
including all changes to GPL-3.0 licenced parts of the codebase.
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.

1 participant