FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-128563: Move assignment of opcode into ifdef by Fidget-Spinner · Pull Request #129803 · python/cpython · GitHub

/ cpython Public

gh-128563: Move assignment of opcode into ifdef - #129803

Merged
Fidget-Spinner merged 2 commits into
python:mainfrom
Fidget-Spinner:tail-call-opcode
Feb 7, 2025
Merged

gh-128563: Move assignment of opcode into ifdef#129803
Fidget-Spinner merged 2 commits into
python:mainfrom
Fidget-Spinner:tail-call-opcode

Conversation

Fidget-Spinner commented Feb 7, 2025
edited
Loading

Copy link
Copy Markdown
Member

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 merged commit 1758447 into python:main Feb 7, 2025

Copy link
Copy Markdown
Member Author

Thanks Irit!

Fidget-Spinner deleted the tail-call-opcode branch February 7, 2025 13:12
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL