Skip to content

gh-152215: Add uop peepholes for folded stack shuffles#153035

Open
cocolato wants to merge 1 commit into
python:mainfrom
cocolato:jit/uop_peepholes
Open

gh-152215: Add uop peepholes for folded stack shuffles#153035
cocolato wants to merge 1 commit into
python:mainfrom
cocolato:jit/uop_peepholes

Conversation

@cocolato

@cocolato cocolato commented Jul 4, 2026

Copy link
Copy Markdown
Member

Add some small peephole helper function to the cleanup phase of the uop optimizer.

We split the existing push/pop cleanup operations into a helper function and added a
specific helper function for the stack reordering operations left over from constant folding.

Perhaps we could use a generic stack simulator to perform more peephole optimizations, but for now there don’t seem to be many examples that could be optimized, and it would increase maintenance costs.

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.

1 participant