Title: gh-148285: Allow recording uops after specializing uops by adityakrmishra · Pull Request #148367 · python/cpython · GitHub
Open Graph Title: gh-148285: Allow recording uops after specializing uops by adityakrmishra · Pull Request #148367 · python/cpython
X Title: gh-148285: Allow recording uops after specializing uops by adityakrmishra · Pull Request #148367 · python/cpython
Description: Fixes #148285 The Issue: Currently, analyzer.py uses a strict positional first = True check when validating macro structures. This strictly forces any uop with records_value == True to be at index 0, which prevents Tier 2 recording uops from safely trailing Tier 1 specializing uops. The Fix: Replaced the boolean first check with a state tracker (valid_recording_pos) in add_macro(). valid_recording_pos starts as True. It remains True if the parsed part is a specializing uop (uop.properties.tier == 1). It ignores CacheEffect and flush parts. It flips to False for any other instruction, properly closing the gate. This safely allows structures like: macro(X) = _SPECIALIZE_X + _RECORD_TOS_TYPE + unused/1 + _X; Issue: gh-148285
Open Graph Description: Fixes #148285 The Issue: Currently, analyzer.py uses a strict positional first = True check when validating macro structures. This strictly forces any uop with records_value == True to be at index...
X Description: Fixes #148285 The Issue: Currently, analyzer.py uses a strict positional first = True check when validating macro structures. This strictly forces any uop with records_value == True to be at index...
Opengraph URL: https://github.com/python/cpython/pull/148367
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:0905020a-3dd8-c0c8-1520-c8bece4d1966 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | B056:27E2F7:286BFC:35177D:6A52E931 |
| html-safe-nonce | cb1eca33b0a5300d3783920d73c8f31aa20948e0ac7033b9018ed549410d936d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMDU2OjI3RTJGNzoyODZCRkM6MzUxNzdEOjZBNTJFOTMxIiwidmlzaXRvcl9pZCI6IjgzMzUxMDgxMTEwMjgzODIwMDEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 3ed956d98a0d37ed05319d3c2a08401735b1a8efc39bd048adecd9d07b0f1946 |
| hovercard-subject-tag | pull_request:3517031814 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/python/cpython/pull/148367/files |
| twitter:image | https://avatars.githubusercontent.com/u/154746713?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/154746713?s=400&v=4 |
| og:image:alt | Fixes #148285 The Issue: Currently, analyzer.py uses a strict positional first = True check when validating macro structures. This strictly forces any uop with records_value == True to be at index... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 | true |
| 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