Skip to content

gh-148211: decompose [_POP_CALL_X/_SHUFFLE_2]_LOAD_CONST_INLINE_BORROW in JIT - #148313

Merged
Fidget-Spinner merged 1 commit into
python:mainfrom
NekoAsakura:gh-148211/decompose-pop-call
Apr 10, 2026
Merged

Fidget-Spinner merged 1 commit into
python:mainfrom
NekoAsakura:gh-148211/decompose-pop-call

Conversation

@NekoAsakura

@NekoAsakura NekoAsakura commented Apr 9, 2026 •

Copy link
Copy Markdown
Member

@Fidget-Spinner Fidget-Spinner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lines changed: 1040 additions & 1411 deletions

Now that's what I like to see!

}
sym_set_const(res, out);
ADD_OP(_POP_CALL_TWO_LOAD_CONST_INLINE_BORROW, 0, (uintptr_t)out);
ADD_OP(_POP_CALL_TWO, 0, 0);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should get rid of this into POP_TOP, POP_TOP, POP_TOP_NOP, POP_TOP in the next PR.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd like to decompose _POP_TWO_LOAD_CONST_INLINE_BORROW and _INSERT_2_LOAD_CONST_INLINE_BORROW and get shot of _POP_TOP_LOAD_CONST_INLINE(_BORROW) we left in #148230 in the next PR. I'll sort _POP_CALL* into individual pops after that.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good, thanks!

@Fidget-Spinner
Fidget-Spinner merged commit aea0b91 into python:main Apr 10, 2026
78 checks passed
@NekoAsakura
NekoAsakura deleted the gh-148211/decompose-pop-call branch April 10, 2026 13:57
ljfp pushed a commit to ljfp/cpython that referenced this pull request Apr 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

2 participants