Uh oh!
There was an error while loading. Please reload this page.
gh-148235: remove duplicate uops _LOAD_CONST_UNDER_INLINE(_BORROW) in JIT - #148236
Merged
Conversation
NekoAsakura
requested review from
Fidget-Spinner, markshannon, savannahostrowski and tomasr8
as code ownersApril 8, 2026 03:02
Fidget-Spinner
commented
Apr 8, 2026
Member
Sorry but I'd rather remove LOAD_CONST_UNDER_INLINE_X as the INSERT_X is clearer. Also the tests changes need fixing, thanks! In the longer-term we should change INSERT_X... to LOAD_CONST_INLINE, SWAP X |
_INSERT_1_LOAD_CONST_INLINE(_BORROW) in JIT_LOAD_CONST_UNDER_INLINE(_BORROW) in JITNekoAsakura
commented
Apr 8, 2026
MemberAuthor
Done :) |
| uops = get_opnames(ex) | ||
| self.assertNotIn("_UNARY_INVERT", uops) | ||
| self.assertIn("_INSERT_1_LOAD_CONST_INLINE_BORROW", uops) | ||
| self.assertIn("_LOAD_CONST_INLINE_BORROW", uops) |
MemberAuthor
There was a problem hiding this comment.
_INSERT_1_LOAD_CONST_INLINE_BORROW has no op_without_push entry on main, therefore not simplified away by remove_unneeded_uops.
Uh oh!
There was an error while loading. Please reload this page.
| self.assertIsNotNone(ex) | ||
| uops = get_opnames(ex) | ||
| self.assertNotIn("_REPLACE_WITH_TRUE", uops) | ||
| self.assertIn("_INSERT_1_LOAD_CONST_INLINE_BORROW", uops) |
Uh oh!
There was an error while loading. Please reload this page.
ljfp pushed a commit
to ljfp/cpython
that referenced
this pull request
Apr 25, 2026
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 freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
_LOAD_CONST_UNDER_INLINE(_BORROW)in JIT #148235