Title: Remove duplicate uops `_LOAD_CONST_UNDER_INLINE(_BORROW)` in JIT · Issue #148235 · python/cpython · GitHub
Open Graph Title: Remove duplicate uops `_LOAD_CONST_UNDER_INLINE(_BORROW)` in JIT · Issue #148235 · python/cpython
X Title: Remove duplicate uops `_LOAD_CONST_UNDER_INLINE(_BORROW)` in JIT · Issue #148235 · python/cpython
Description: Feature or enhancement Proposal: _INSERT_1_LOAD_CONST_INLINE(_BORROW) and _LOAD_CONST_UNDER_INLINE(_BORROW) have identical stack effects — they're basically the same thing with different names. cpython/Python/bytecodes.c Lines 5927 to 59...
Open Graph Description: Feature or enhancement Proposal: _INSERT_1_LOAD_CONST_INLINE(_BORROW) and _LOAD_CONST_UNDER_INLINE(_BORROW) have identical stack effects — they're basically the same thing with different names. cpy...
X Description: Feature or enhancement Proposal: _INSERT_1_LOAD_CONST_INLINE(_BORROW) and _LOAD_CONST_UNDER_INLINE(_BORROW) have identical stack effects — they're basically the same thing with different names....
Opengraph URL: https://github.com/python/cpython/issues/148235
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Remove duplicate uops `_LOAD_CONST_UNDER_INLINE(_BORROW)` in JIT","articleBody":"# Feature or enhancement\n\n### Proposal:\n\n`_INSERT_1_LOAD_CONST_INLINE(_BORROW)` and `_LOAD_CONST_UNDER_INLINE(_BORROW)` have identical stack effects — they're basically the same thing with different names.\n\nhttps://github.com/python/cpython/blob/0b20bff386141ee0e8c62da8366f674bad17e048/Python/bytecodes.c#L5927-L5937\nhttps://github.com/python/cpython/blob/0b20bff386141ee0e8c62da8366f674bad17e048/Python/bytecodes.c#L5968-L5978\n\n`_LOAD_CONST_UNDER_INLINE(_BORROW)` already has entries in `op_without_push`, so `remove_unneeded_uops` can properly simplify it. However `_INSERT_1` don't, thus we should rename all `_INSERT_1` usages to `_LOAD_CONST_UNDER` and remove the duplicate definitions.\n\n### Has this already been discussed elsewhere?\n\nThis is a minor feature, which does not need previous discussion elsewhere\n\n### Links to previous discussion of this feature:\n\nhttps://github.com/python/cpython/pull/148230#discussion_r3047605163\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-148236\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/NekoAsakura","@type":"Person","name":"NekoAsakura"},"datePublished":"2026-04-08T02:52:51.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/148235/cpython/issues/148235"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:63430eab-c049-1a8c-864f-8163eaa5f164 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BEAC:26FC81:A40692:D9FB42:6A5317F1 |
| html-safe-nonce | b171c2830031f810f29634c4195c469befadc1e2e71ee46f19a1b7cc1aab7f90 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRUFDOjI2RkM4MTpBNDA2OTI6RDlGQjQyOjZBNTMxN0YxIiwidmlzaXRvcl9pZCI6IjU1NDI3MTcxMTQ3MzYxMjE4NDEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 0efd45f9337360739e3d51677e7ac18318eb14d94b0a68278474f35a9220cda2 |
| hovercard-subject-tag | issue:4221756222 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/148235/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0dbd62cbbaab518be55ee14eec7adee73a65befad9e9b31aa4a46ed2096554e2/python/cpython/issues/148235 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0dbd62cbbaab518be55ee14eec7adee73a65befad9e9b31aa4a46ed2096554e2/python/cpython/issues/148235 |
| og:image:alt | Feature or enhancement Proposal: _INSERT_1_LOAD_CONST_INLINE(_BORROW) and _LOAD_CONST_UNDER_INLINE(_BORROW) have identical stack effects — they're basically the same thing with different names. cpy... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | NekoAsakura |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width