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

GH-98831: Modernize a ton of simpler instructions #100545

Merged
merged 32 commits into from Dec 28, 2022

Conversation

gvanrossum
Copy link
Member

@gvanrossum gvanrossum commented Dec 26, 2022

These should now exclusively use DECREF_INPUTS() and ERROR_IF().

@gvanrossum gvanrossum changed the title Modernize a ton of simpler instructions GH-98831:: Modernize a ton of simpler instructions Dec 27, 2022
@gvanrossum gvanrossum marked this pull request as ready for review Dec 27, 2022
@gvanrossum gvanrossum requested a review from brandtbucher Dec 27, 2022
@gvanrossum gvanrossum added the 🔨 test-with-refleak-buildbots Test PR w/ refleak buildbots; report in status section label Dec 27, 2022
@bedevere-bot
Copy link

bedevere-bot commented Dec 27, 2022

🤖 New build scheduled with the buildbot fleet by @gvanrossum for commit 841f086 🤖

If you want to schedule another build, you need to add the :hammer: test-with-refleak-buildbots label again.

@bedevere-bot bedevere-bot removed the 🔨 test-with-refleak-buildbots Test PR w/ refleak buildbots; report in status section label Dec 27, 2022
Copy link
Member

@brandtbucher brandtbucher left a comment

Nice! Solid readability improvement, and some improvements to the generated code too.

family(load_const) = { LOAD_CONST, LOAD_CONST__LOAD_FAST };
family(load_fast) = { LOAD_FAST, LOAD_FAST__LOAD_CONST, LOAD_FAST__LOAD_FAST };
Copy link
Member

@brandtbucher brandtbucher Dec 27, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are these families being removed?

Copy link
Member Author

@gvanrossum gvanrossum Dec 28, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This part of the file isn't parsed anyway, and if we moved these families into a part where they would be parsed the generator would complain, because it currently doesn't support super-instructions as part of a family.

See also faster-cpython/ideas#495

@brandtbucher brandtbucher changed the title GH-98831:: Modernize a ton of simpler instructions GH-98831: Modernize a ton of simpler instructions Dec 27, 2022
@gvanrossum gvanrossum merged commit 08e5594 into python:main Dec 28, 2022
26 checks passed
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.

None yet

3 participants