gh-114058: More robust method handling in redundancy eliminator by Fidget-Spinner · Pull Request #115779 · python/cpython · GitHub
Skip to content

gh-114058: More robust method handling in redundancy eliminator - #115779

Merged
Fidget-Spinner merged 3 commits into
python:mainfrom
Fidget-Spinner:buggy_methods
Feb 23, 2024
Merged

Fidget-Spinner merged 3 commits into
python:mainfrom
Fidget-Spinner:buggy_methods

Conversation

@Fidget-Spinner

@Fidget-Spinner Fidget-Spinner commented Feb 21, 2024

Copy link
Copy Markdown
Member

Method handling was actually previously buggy.

@gvanrossum gvanrossum left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can you explain what was buggy in the previous version? Neither the issue you linked to nor the diff helps me understand the problem you're addressing here. Was it a correctness bug or was it simply not optimizing as much as it could around the four newly special-cased opcodes?

Comment thread Python/optimizer_analysis.c Outdated
Comment thread Python/optimizer_analysis.c
Comment thread Python/tier2_redundancy_eliminator_cases.c.h Outdated
@Fidget-Spinner

Copy link
Copy Markdown
Member Author

@Fidget-Spinner
Fidget-Spinner merged commit a33ffe4 into python:main Feb 23, 2024
@Fidget-Spinner
Fidget-Spinner deleted the buggy_methods branch February 23, 2024 07:42
@markshannon

Copy link
Copy Markdown
Member

Comment thread Python/tier2_redundancy_eliminator_bytecodes.c
Comment thread Python/tier2_redundancy_eliminator_bytecodes.c
Comment thread Python/tier2_redundancy_eliminator_bytecodes.c
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.

3 participants