| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:30616343-bbac-efb9-d41f-fd431cac4ae7 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | ECAC:69D3C:15AEFE1:1C9F9E7:6A51C122 |
| html-safe-nonce | 91ea00906b0978de158792305d11244a2addf8bb195e33bf94085f9639686b7b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQ0FDOjY5RDNDOjE1QUVGRTE6MUM5RjlFNzo2QTUxQzEyMiIsInZpc2l0b3JfaWQiOiI0OTIxODYzMDUyMTgwMTc3MTg2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | e2d22bd27bd930da90e6b772b76689482c830c10bb4e5822bc3605ca34dbb6e1 |
| hovercard-subject-tag | pull_request:3441935222 |
| 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 | ///pull_requests/show/files |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/146397/files |
| twitter:image | https://avatars.githubusercontent.com/u/883786?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/883786?s=400&v=4 |
| og:image:alt | We optimize float divisions for the case where one of the operands is a unique reference. This is similar to #146307, but with a guard for division by zero.
We do not add opcodes in tier 1
For tie... |
| 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 full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7aed05249554b889eb33d002851a973eebcc7e91 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/cpython/pull/146397/files#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F146397%2Ffiles |
| GitHub CopilotWrite better code with AI | https://github.com/features/copilot |
| GitHub Copilot appDirect agents from issue to merge | https://github.com/features/ai/github-app |
| MCP RegistryNewIntegrate external tools | https://github.com/mcp |
| ActionsAutomate any workflow | https://github.com/features/actions |
| CodespacesInstant dev environments | https://github.com/features/codespaces |
| IssuesPlan and track work | https://github.com/features/issues |
| Code ReviewManage code changes | https://github.com/features/code-review |
| GitHub Advanced SecurityFind and fix vulnerabilities | https://github.com/security/advanced-security |
| Code securitySecure your code as you build | https://github.com/security/advanced-security/code-security |
| Secret protectionStop leaks before they start | https://github.com/security/advanced-security/secret-protection |
| Why GitHub | https://github.com/why-github |
| Documentation | https://docs.github.com |
| Blog | https://github.blog |
| Changelog | https://github.blog/changelog |
| Marketplace | https://github.com/marketplace |
| View all features | https://github.com/features |
| Enterprises | https://github.com/enterprise |
| Small and medium teams | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| App Modernization | https://github.com/solutions/use-case/app-modernization |
| DevSecOps | https://github.com/solutions/use-case/devsecops |
| DevOps | https://github.com/solutions/use-case/devops |
| CI/CD | https://github.com/solutions/use-case/ci-cd |
| View all use cases | https://github.com/solutions/use-case |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| View all industries | https://github.com/solutions/industry |
| View all solutions | https://github.com/solutions |
| AI | https://github.com/resources/articles?topic=ai |
| Software Development | https://github.com/resources/articles?topic=software-development |
| DevOps | https://github.com/resources/articles?topic=devops |
| Security | https://github.com/resources/articles?topic=security |
| View all topics | https://github.com/resources/articles |
| Customer stories | https://github.com/customer-stories |
| Events & webinars | https://github.com/resources/events |
| Ebooks & reports | https://github.com/resources/whitepapers |
| Business insights | https://github.com/solutions/executive-insights |
| GitHub Skills | https://skills.github.com |
| Documentation | https://docs.github.com |
| Customer support | https://support.github.com |
| Community forum | https://github.com/orgs/community/discussions |
| Trust center | https://github.com/trust-center |
| Partners | https://github.com/partners |
| View all resources | https://github.com/resources |
| GitHub SponsorsFund open source developers | https://github.com/open-source/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/open-source/accelerator |
| GitHub Stars | https://stars.github.com |
| Archive Program | https://archiveprogram.github.com |
| Topics | https://github.com/topics |
| Trending | https://github.com/trending |
| Collections | https://github.com/collections |
| Enterprise platformAI-powered developer platform | https://github.com/enterprise |
| GitHub Advanced SecurityEnterprise-grade security features | https://github.com/security/advanced-security |
| Copilot for BusinessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Pricing | https://github.com/pricing |
| Search syntax tips | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
| documentation | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F146397%2Ffiles |
|
Sign up
| https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=python%2Fcpython |
| Reload | https://github.com/python/cpython/pull/146397/files |
| Reload | https://github.com/python/cpython/pull/146397/files |
| Reload | https://github.com/python/cpython/pull/146397/files |
| Please reload this page | https://github.com/python/cpython/pull/146397/files |
|
python
| https://github.com/python |
| cpython | https://github.com/python/cpython |
| Please reload this page | https://github.com/python/cpython/pull/146397/files |
|
Notifications
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Fork
35k
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Star
73.7k
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Code
| https://github.com/python/cpython |
|
Issues
5k+
| https://github.com/python/cpython/issues |
|
Pull requests
2.3k
| https://github.com/python/cpython/pulls |
|
Actions
| https://github.com/python/cpython/actions |
|
Projects
| https://github.com/python/cpython/projects |
|
Security and quality
0
| https://github.com/python/cpython/security |
|
Insights
| https://github.com/python/cpython/pulse |
|
Code
| https://github.com/python/cpython |
|
Issues
| https://github.com/python/cpython/issues |
|
Pull requests
| https://github.com/python/cpython/pulls |
|
Actions
| https://github.com/python/cpython/actions |
|
Projects
| https://github.com/python/cpython/projects |
|
Security and quality
| https://github.com/python/cpython/security |
|
Insights
| https://github.com/python/cpython/pulse |
| Sign up for GitHub
| https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose |
| terms of service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose |
| Fidget-Spinner | https://github.com/Fidget-Spinner |
| python:main | https://github.com/python/cpython/tree/main |
| eendebakpt:jit_float_truediv | https://github.com/eendebakpt/cpython/tree/jit_float_truediv |
|
Conversation
18
| https://github.com/python/cpython/pull/146397 |
|
Commits
25
| https://github.com/python/cpython/pull/146397/commits |
|
Checks
75
| https://github.com/python/cpython/pull/146397/checks |
|
Files changed
| https://github.com/python/cpython/pull/146397/files |
| Please reload this page | https://github.com/python/cpython/pull/146397/files |
|
gh-146393: Optimize float division operations by mutating uniquely-referenced operands in place (JIT only)
| https://github.com/python/cpython/pull/146397/files#top |
|
Show all changes
25 commits
| https://github.com/python/cpython/pull/146397/files |
|
c846269
gh-146306: Specialize float/float true division in tier 2 optimizer
eendebakpt Mar 24, 2026
| https://github.com/python/cpython/pull/146397/commits/c846269e1038a4d3cb9a4b88754db9a1cfa0b711 |
|
97889f5
Mark results of float-producing _BINARY_OP as unique
eendebakpt Mar 24, 2026
| https://github.com/python/cpython/pull/146397/commits/97889f5f3deda26adb1a8eecbc62d3843dccc864 |
|
67869e4
Fix truediv type propagation for non-numeric types
eendebakpt Mar 25, 2026
| https://github.com/python/cpython/pull/146397/commits/67869e4622a78ae5849064ff2662b52307f3c382 |
|
5c4e3bf
add guards
eendebakpt Mar 25, 2026
| https://github.com/python/cpython/pull/146397/commits/5c4e3bf6a0c6cede6f848c85618be4842e006754 |
|
228bfa9
news entry
eendebakpt Mar 25, 2026
| https://github.com/python/cpython/pull/146397/commits/228bfa9a16e1d45a5cef6d2bdaa5847e13bedcc0 |
|
8bf12bf
Merge branch 'main' into jit_float_truediv
eendebakpt Mar 25, 2026
| https://github.com/python/cpython/pull/146397/commits/8bf12bf68666344f46c72323e3538d4a5940be56 |
|
46c241e
Merge remote-tracking branch 'upstream/main' into pr/146397
Fidget-Spinner Mar 29, 2026
| https://github.com/python/cpython/pull/146397/commits/46c241ea33079a4c06e631171d9c58ef00a362a2 |
|
53dd383
avoid speculative guards
eendebakpt Mar 29, 2026
| https://github.com/python/cpython/pull/146397/commits/53dd383c7da542915893d40b7d4f266e3e2b5039 |
|
44ee7f0
fix test
eendebakpt Mar 29, 2026
| https://github.com/python/cpython/pull/146397/commits/44ee7f07ae9c9c7bbc8569b1873a1e09f8aa0dff |
|
e302112
Merge branch 'main' into jit_float_truediv
eendebakpt Apr 3, 2026
| https://github.com/python/cpython/pull/146397/commits/e302112619de9286151df35e9da802e59ec2bfdb |
|
d2c03bc
Regenerate pycore_uop_ids.h and pycore_uop_metadata.h with truediv fl…
eendebakpt Apr 3, 2026
| https://github.com/python/cpython/pull/146397/commits/d2c03bced625e3f837e96b3ccb1ead36801d9a50 |
|
dba0bb3
Merge branch 'main' into jit_float_truediv
eendebakpt Apr 3, 2026
| https://github.com/python/cpython/pull/146397/commits/dba0bb334a93fd2d55d6774151443731ca4c7b01 |
|
8615577
Merge branch 'main' into jit_float_truediv
eendebakpt Apr 4, 2026
| https://github.com/python/cpython/pull/146397/commits/8615577080c447199833dbedf4adb762928d30ac |
|
e715dac
review comments
eendebakpt Apr 5, 2026
| https://github.com/python/cpython/pull/146397/commits/e715dac12d6f5e8ec927f758f7d32696a8125b91 |
|
925841c
Merge branch 'main' into jit_float_truediv
eendebakpt Apr 5, 2026
| https://github.com/python/cpython/pull/146397/commits/925841c61785ada2a0bfb47ed38b0bc9aef625de |
|
43f4987
mark more returns as unique
eendebakpt Apr 6, 2026
| https://github.com/python/cpython/pull/146397/commits/43f4987c77e2e4e675e9034ee67475d6a169214f |
|
a49018e
Merge branch 'main' into jit_float_truediv
eendebakpt Apr 6, 2026
| https://github.com/python/cpython/pull/146397/commits/a49018ea282f84ec09ee450bbd2c5f596d9b6f46 |
|
9cab900
mark more returns as unique
eendebakpt Apr 6, 2026
| https://github.com/python/cpython/pull/146397/commits/9cab90075e698c6ad5cc1a854cbe506411703f75 |
|
b432e1a
Merge branch 'main' into jit_float_truediv
eendebakpt Apr 11, 2026
| https://github.com/python/cpython/pull/146397/commits/b432e1a0509d8450c1e1c62d7a91fcc7b5383b83 |
|
0c89654
Merge branch 'main' into jit_float_truediv
eendebakpt Apr 12, 2026
| https://github.com/python/cpython/pull/146397/commits/0c8965401d41e2abdba348cb631da8f466afdc3f |
|
fa97ab3
Merge branch 'main' into jit_float_truediv
eendebakpt Apr 14, 2026
| https://github.com/python/cpython/pull/146397/commits/fa97ab307c2ae2d97d41e4ef2d6517380f11adeb |
|
3ba0c85
add back recording ops and guards
eendebakpt Apr 14, 2026
| https://github.com/python/cpython/pull/146397/commits/3ba0c85add2009c850f5f65a2b42d2b62ed4e56f |
|
e7fdb04
simplify
eendebakpt Apr 14, 2026
| https://github.com/python/cpython/pull/146397/commits/e7fdb0458c9b56ef34d0d96147ef1b890d3c74e0 |
|
44666f7
Merge remote-tracking branch 'upstream/main' into pr/146397
Fidget-Spinner Apr 14, 2026
| https://github.com/python/cpython/pull/146397/commits/44666f7b3f03936e0a248af9aad63f8e92e9d6f8 |
|
9a8c143
Merge branch 'jit_float_truediv' of github.com:eendebakpt/cpython int…
Fidget-Spinner Apr 14, 2026
| https://github.com/python/cpython/pull/146397/commits/9a8c1436cddef605df6ec397311acd27f805d75b |
|
Clear filters
| https://github.com/python/cpython/pull/146397/files |
| Please reload this page | https://github.com/python/cpython/pull/146397/files |
| Please reload this page | https://github.com/python/cpython/pull/146397/files |
|
pycore_opcode_metadata.h
| https://github.com/python/cpython/pull/146397/files#diff-72bc4c0445516cc3eabd536220b2459617491ffaabbdb8a7c5381f36c991e378 |
|
pycore_uop_ids.h
| https://github.com/python/cpython/pull/146397/files#diff-2a420e4d0d58009249c0f73f7c822167b053bd51cb213b20179bd2aebfc66ff9 |
|
pycore_uop_metadata.h
| https://github.com/python/cpython/pull/146397/files#diff-55e65a72fa31e9b746e03076d2c74b716c0c1171663f36960b2339fcbfae9bab |
|
test_opt.py
| https://github.com/python/cpython/pull/146397/files#diff-67b5bd915e37f77df79907865982648172c27d3b96fbb072b30a73c6a2735439 |
|
2026-03-25-12-00-00.gh-issue-146306.B9f62e.rst
| https://github.com/python/cpython/pull/146397/files#diff-acb897482a80f293c5080bb50fa6d7c63740d2e9558fccb09699f28eaa07ec31 |
|
test_cases.c.h
| https://github.com/python/cpython/pull/146397/files#diff-2852a58ed53ab1473b74dbdc4165885a9b74865b6d71e48fa4813d6289fa1838 |
|
bytecodes.c
| https://github.com/python/cpython/pull/146397/files#diff-729a985b0cb8b431cb291f1edb561bbbfea22e3f8c262451cd83328a0936a342 |
|
ceval_macros.h
| https://github.com/python/cpython/pull/146397/files#diff-45baf725df91ed7826458cda8a17c2b4a2e5296504de1ed6a1c5a9ebe6390a47 |
|
executor_cases.c.h
| https://github.com/python/cpython/pull/146397/files#diff-a1c3430c42a66c16e6d2e154491a6da993b187b27c628545a12a02c7b2a06b81 |
|
generated_cases.c.h
| https://github.com/python/cpython/pull/146397/files#diff-4ef46fa654f95502e49a24f7dc8ee31a4cac9b3433fe9cd2b2d4dd78cfbad448 |
|
optimizer_bytecodes.c
| https://github.com/python/cpython/pull/146397/files#diff-e5bd2b14b0b10f0f47786e26306d689ed1361c3dc3b11dcc3ea52b8a2422ff64 |
|
optimizer_cases.c.h
| https://github.com/python/cpython/pull/146397/files#diff-ed4567b3e67709ec57bf4df91ef058cfcbe00d7da11cd2a75e38241fa1ca99d2 |
|
record_functions.c.h
| https://github.com/python/cpython/pull/146397/files#diff-ac2bf70082a97de53db16bbb949b29240f59f89c4b9ad93928b3926738cbb74c |
| Include/internal/pycore_opcode_metadata.h | https://github.com/python/cpython/pull/146397/files#diff-72bc4c0445516cc3eabd536220b2459617491ffaabbdb8a7c5381f36c991e378 |
|
View file
| https://github.com/eendebakpt/cpython/blob/9a8c1436cddef605df6ec397311acd27f805d75b/Include/internal/pycore_opcode_metadata.h |
|
Open in desktop
| https://desktop.github.com |
| how customized files appear on GitHub | https://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github |
| Please reload this page | https://github.com/python/cpython/pull/146397/files |
| Please reload this page | https://github.com/python/cpython/pull/146397/files |
| Please reload this page | https://github.com/python/cpython/pull/146397/files |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |