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

Disable too-aggressive optimization in OptCmp8 #899

Merged
merged 5 commits into from May 27, 2019

Conversation

@bbbradsmith
Copy link
Contributor

@bbbradsmith bbbradsmith commented May 15, 2019

This optimization generates incorrect code for some 16-bit cases (possibly others). See: #895

I'm not sure if it would be better to re-evaluate how the compiler generates a shared branch so that this optimization could be kept, but this change is simple and will prevent it from being broken by the attempted optimization.

Generates incorrect code for some 16-bit cases. See: cc65#895
@clbr
Copy link
Contributor

@clbr clbr commented May 16, 2019

Please add a test case of the bug to test/val, to increase coverage and make sure it stays fixed.

Loading

@bbbradsmith
Copy link
Contributor Author

@bbbradsmith bbbradsmith commented May 16, 2019

Thank you @clbr for that suggestion. I have added a unit test.

Loading

@oliverschmidt oliverschmidt merged commit 4642421 into cc65:master May 27, 2019
1 check passed
Loading
@bbbradsmith bbbradsmith deleted the optcmp8-safety branch May 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants