Title: JIT: make recorder layouts stable across opcode families · Issue #149358 · python/cpython · GitHub
Open Graph Title: JIT: make recorder layouts stable across opcode families · Issue #149358 · python/cpython
X Title: JIT: make recorder layouts stable across opcode families · Issue #149358 · python/cpython
Description: Feature or enhancement Proposal: The current JIT recorder generation logic tends to conflate the family source recording layout with the specific consumer layout, leading to the following issues: The set of recorders for members within a...
Open Graph Description: Feature or enhancement Proposal: The current JIT recorder generation logic tends to conflate the family source recording layout with the specific consumer layout, leading to the following issues: T...
X Description: Feature or enhancement Proposal: The current JIT recorder generation logic tends to conflate the family source recording layout with the specific consumer layout, leading to the following issues: T...
Opengraph URL: https://github.com/python/cpython/issues/149358
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"JIT: make recorder layouts stable across opcode families","articleBody":"# Feature or enhancement\n\n### Proposal:\n\nThe current JIT recorder generation logic tends to conflate the family source recording layout with the specific consumer layout, leading to the following issues:\n\n* The set of recorders for members within a family is not explicitly modeled by the analyzer, so the generator must infer the recording semantics for family members on its own.\n* When the base opcode and specialized opcode record the same slot in different formats, the generator may choose the specialized recorder as the family source slot.\n* If the family source slot selects a derived value, such as `_RECORD_TOS_TYPE`, the base opcode’s raw recorder `_RECORD_TOS` must be converted back from a type to a raw object; this process is irreversible and does not reflect the true capabilities of runtime transforms.\n* Runtime transform helpers are hand-coded in `Python/optimizer.c`, making them prone to drift from the recorder uop body.\n* The transform dispatcher may generate helpers for recorders that are not actually used by any slot map, increasing dead branches and maintenance overhead in the generated code.\n\n\n### Has this already been discussed elsewhere?\n\nNo response given\n\n### Links to previous discussion of this feature:\n\n_No response_\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-149359\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/cocolato","@type":"Person","name":"cocolato"},"datePublished":"2026-05-04T12:20:06Z","url":"https://github.com/python/cpython/issues/149358"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:7c064025-d6ca-46aa-a56e-d247d9b179b3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 92FA:3E4205:33AA896:4505404:6B0201F7 |
| html-safe-nonce | 9115e61a5aef5533ffa9edc7040e11d7b8615e02ce46b2470b3fe65ded08061c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MkZBOjNFNDIwNTozM0FBODk2OjQ1MDU0MDQ6NkIwMjAxRjciLCJ2aXNpdG9yX2lkIjoiMzE5Nzk4NzQ4NDUyMDgwODk1MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 697569aa1191159b2a3467fbb25e598d2ddb5c5c43ff65b3cac7c912a76687ae |
| hovercard-subject-tag | issue:4376504039 |
| 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/149358/issue_layout |
| twitter:image | https://opengraph.githubassets.com/82bfa33b02bf1f128097a5dbfc4161b2a9223b5eef795665c2ba8e0e6e46c163/python/cpython/issues/149358 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/82bfa33b02bf1f128097a5dbfc4161b2a9223b5eef795665c2ba8e0e6e46c163/python/cpython/issues/149358 |
| og:image:alt | Feature or enhancement Proposal: The current JIT recorder generation logic tends to conflate the family source recording layout with the specific consumer layout, leading to the following issues: T... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | cocolato |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| 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 | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width