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

[3.12] gh-109889: comment out assertion indicating a failed optimization of a redundant NOP #109899

Merged
merged 2 commits into from
Sep 26, 2023

Conversation

iritkatriel
Copy link
Member

@iritkatriel iritkatriel commented Sep 26, 2023

There is an optimization in the compiler where it removes redundant NOPs, and this assertion checks that it doesn't miss any.

Through fuzzing, it was found that in the case where there is a basic block with just a single instruction which is a redundant NOP, the NOP is not being removed (see #109889).

This close to the 3.12.0 release, I am proposing to comment out the assertion. There is no correctness issue here (just an extra NOP in some unlikely code).

I will work on a proper fix for the optimization for 3.13 and 3.12.1.

@AlexWaygood
Copy link
Member

AlexWaygood commented Sep 26, 2023

Looks like this leads to a bunch of compiler warnings being emitted on line 370:

‘no_redundant_nops’ defined but not used [-Wunused-function]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants