Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

GH-122155: Track local variables between pops and pushes in cases generator#122286

Merged
markshannon merged 13 commits into
python:mainpython/cpython:mainfrom
faster-cpython:cases-gen-track-localsfaster-cpython/cpython:cases-gen-track-localsCopy head branch name to clipboard
Aug 1, 2024
Merged

GH-122155: Track local variables between pops and pushes in cases generator#122286
markshannon merged 13 commits into
python:mainpython/cpython:mainfrom
faster-cpython:cases-gen-track-localsfaster-cpython/cpython:cases-gen-track-localsCopy head branch name to clipboard

Conversation

@markshannon

@markshannon markshannon commented Jul 25, 2024

Copy link
Copy Markdown
Member

The current design of the cases generator assumes that the code generator can infer all it needs to know from looking at the stack comments of individual micro-ops. However this isn't true within a tier 1 instruction if the intermediate stack grows during an instruction.

This PR tracks local values during micro ops, between them being popped from the stack and pushed back to the stack.

Comment thread Tools/cases_generator/stack.py Outdated
Comment thread Tools/cases_generator/tier1_generator.py Outdated
Comment thread Lib/test/test_generated_cases.py Outdated
Comment thread Tools/cases_generator/stack.py Outdated
Comment thread Tools/cases_generator/optimizer_generator.py Outdated
Comment thread Tools/cases_generator/stack.py Outdated
markshannon and others added 4 commits July 30, 2024 09:26
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Paweł Piotr Przeradowski <showerproof86@gmail.com>
Comment thread Lib/test/test_generated_cases.py Outdated
@markshannon

Copy link
Copy Markdown
Member Author

JIT failures are unrelated (an llvm package issue)

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.