GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||
GeezerVison is showing github.com — gh-148211: decompose `[_POP_TWO/_INSERT_2]_LOAD_CONST_INLINE_BORROW` in JIT by NekoAsakura · Pull Request #148357 · python/cpython Conversation
|
|
Conflicts already 😲 JIT is moving so fast. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Awesome, another nice simplification. Thanks!
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Yeah there're like 5 active contributors sending stuff to the JIT almost daily. It's a happy problem :). |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@NekoAsakura I would like to add you to the contributors in the What's New page. Would you be alright with that and do you mind if I use your |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
That'd be lovely, thanks! Would it be alright to use a different name though? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Yeah of course. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I'll open the PR to add new JIT contributors. Give me a moment. Will tag you in it. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| ("_SWAP", "3, 0"), | ||
| ("_SWAP", "2, 0")], |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
This seems a little inefficient, but I think it should be fine as it's just a register to register move with stack caching in the JIT.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Are there any better practices for this?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
don't think so: no matter what you do, you probably have to shuffle the register anyways. We can remove some movs, but I doubt that will speed up things by that much on modern CPUs considering register renaming is a thing.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Sound about right.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I verified that for the following: We emit the following: Which means everything is in registers. So that's great. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Would you like me to decompose |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Yes please, the op elimination pass should be as simple as possible. We want this so any optimizations we do in the future are easier and more effective. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.