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-128563: Move assignment of opcode into ifdef #129803

Merged
merged 2 commits into from
Feb 7, 2025

Conversation

Fidget-Spinner
Copy link
Member

@Fidget-Spinner Fidget-Spinner commented Feb 7, 2025

This moves the opcode assignment into the tail call ifdef, to aid with really old compilers that might not be able to optimize it away.

Though we might think a single assignment doesn't matter. I have a feeling it's not optimized away.

See the comment thread from #128563 (comment) onwards for rationale.

@Fidget-Spinner Fidget-Spinner merged commit 1758447 into python:main Feb 7, 2025
51 checks passed
@Fidget-Spinner
Copy link
Member Author

Thanks Irit!

@Fidget-Spinner Fidget-Spinner deleted the tail-call-opcode branch February 7, 2025 13:12
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.

2 participants