René's URL Explorer Experiment


Title: gh-146393: Optimize float division operations by mutating uniquely-referenced operands in place (JIT only) by eendebakpt · Pull Request #146397 · python/cpython · GitHub

Open Graph Title: gh-146393: Optimize float division operations by mutating uniquely-referenced operands in place (JIT only) by eendebakpt · Pull Request #146397 · python/cpython

X Title: gh-146393: Optimize float division operations by mutating uniquely-referenced operands in place (JIT only) by eendebakpt · Pull Request #146397 · python/cpython

Description: The Python programming language. Contribute to python/cpython development by creating an account on GitHub.

Open Graph Description: 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...

X Description: 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...

Opengraph URL: https://github.com/python/cpython/pull/146397

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/commits(.:format)
route-controllerpull_requests
route-actioncommits
fetch-noncev2:e5df2344-f9bd-6096-2b29-a9fe8a995deb
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9C16:3614ED:2735782:33FC3AC:6A521329
html-safe-nonce5fd61917964b82b7fd47c916c952a5fb351bb814e1107d3c3547837effeb5d83
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QzE2OjM2MTRFRDoyNzM1NzgyOjMzRkMzQUM6NkE1MjEzMjkiLCJ2aXNpdG9yX2lkIjoiMzIwMDAxMzczODQxMDM4MjEyMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac3a14af75b90f0460ddff00138bbad72d4dd8632b3bbb755d00ce50e6985cbef9
hovercard-subject-tagpull_request:3441935222
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/commits
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/pull/146397/commits
twitter:imagehttps://opengraph.githubassets.com/25fc924a127ebe6daccec5c8214fe4dee031bc5523f7df46da8f1dd0f9fb4a3e/python/cpython/pull/146397
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/25fc924a127ebe6daccec5c8214fe4dee031bc5523f7df46da8f1dd0f9fb4a3e/python/cpython/pull/146397
og:image:altWe 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:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameeendebakpt
hostnamegithub.com
expected-hostnamegithub.com
Noneb9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb
turbo-cache-controlno-cache
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release7aed05249554b889eb33d002851a973eebcc7e91
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/146397/commits#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F146397%2Fcommits
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://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%2Fcommits
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%2Fcommits&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/146397/commits
Reloadhttps://github.com/python/cpython/pull/146397/commits
Reloadhttps://github.com/python/cpython/pull/146397/commits
Please reload this pagehttps://github.com/python/cpython/pull/146397/commits
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/146397/commits
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
Fidget-Spinnerhttps://github.com/Fidget-Spinner
python:mainhttps://github.com/python/cpython/tree/main
eendebakpt:jit_float_truedivhttps://github.com/eendebakpt/cpython/tree/jit_float_truediv
Conversationhttps://github.com/python/cpython/pull/146397
Commits25 (25)https://github.com/python/cpython/pull/146397/commits
Checkshttps://github.com/python/cpython/pull/146397/checks
Files changedhttps://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/commits#top
Fidget-Spinnerhttps://github.com/Fidget-Spinner
python:mainhttps://github.com/python/cpython/tree/main
eendebakpt:jit_float_truedivhttps://github.com/eendebakpt/cpython/tree/jit_float_truediv
gh-146306: Specialize float/float true division in tier 2 optimizerhttps://github.com/python/cpython/pull/146397/commits/c846269e1038a4d3cb9a4b88754db9a1cfa0b711
eendebakpthttps://github.com/python/cpython/commits?author=eendebakpt
claudehttps://github.com/python/cpython/commits?author=claude
c846269https://github.com/python/cpython/pull/146397/commits/c846269e1038a4d3cb9a4b88754db9a1cfa0b711
https://github.com/python/cpython/tree/c846269e1038a4d3cb9a4b88754db9a1cfa0b711
Mark results of float-producing _BINARY_OP as uniquehttps://github.com/python/cpython/pull/146397/commits/97889f5f3deda26adb1a8eecbc62d3843dccc864
eendebakpthttps://github.com/python/cpython/commits?author=eendebakpt
claudehttps://github.com/python/cpython/commits?author=claude
97889f5https://github.com/python/cpython/pull/146397/commits/97889f5f3deda26adb1a8eecbc62d3843dccc864
https://github.com/python/cpython/tree/97889f5f3deda26adb1a8eecbc62d3843dccc864
Fix truediv type propagation for non-numeric typeshttps://github.com/python/cpython/pull/146397/commits/67869e4622a78ae5849064ff2662b52307f3c382
eendebakpthttps://github.com/python/cpython/commits?author=eendebakpt
claudehttps://github.com/python/cpython/commits?author=claude
67869e4https://github.com/python/cpython/pull/146397/commits/67869e4622a78ae5849064ff2662b52307f3c382
https://github.com/python/cpython/tree/67869e4622a78ae5849064ff2662b52307f3c382
add guardshttps://github.com/python/cpython/pull/146397/commits/5c4e3bf6a0c6cede6f848c85618be4842e006754
https://github.com/eendebakpt
eendebakpthttps://github.com/python/cpython/commits?author=eendebakpt
5c4e3bfhttps://github.com/python/cpython/pull/146397/commits/5c4e3bf6a0c6cede6f848c85618be4842e006754
https://github.com/python/cpython/tree/5c4e3bf6a0c6cede6f848c85618be4842e006754
news entryhttps://github.com/python/cpython/pull/146397/commits/228bfa9a16e1d45a5cef6d2bdaa5847e13bedcc0
https://github.com/eendebakpt
eendebakpthttps://github.com/python/cpython/commits?author=eendebakpt
228bfa9https://github.com/python/cpython/pull/146397/commits/228bfa9a16e1d45a5cef6d2bdaa5847e13bedcc0
https://github.com/python/cpython/tree/228bfa9a16e1d45a5cef6d2bdaa5847e13bedcc0
Merge branch 'main' into jit_float_truedivhttps://github.com/python/cpython/pull/146397/commits/8bf12bf68666344f46c72323e3538d4a5940be56
https://github.com/eendebakpt
eendebakpthttps://github.com/python/cpython/commits?author=eendebakpt
8bf12bfhttps://github.com/python/cpython/pull/146397/commits/8bf12bf68666344f46c72323e3538d4a5940be56
https://github.com/python/cpython/tree/8bf12bf68666344f46c72323e3538d4a5940be56
Merge remote-tracking branch 'upstream/main' into pr/146397https://github.com/python/cpython/pull/146397/commits/46c241ea33079a4c06e631171d9c58ef00a362a2
https://github.com/Fidget-Spinner
Fidget-Spinnerhttps://github.com/python/cpython/commits?author=Fidget-Spinner
46c241ehttps://github.com/python/cpython/pull/146397/commits/46c241ea33079a4c06e631171d9c58ef00a362a2
https://github.com/python/cpython/tree/46c241ea33079a4c06e631171d9c58ef00a362a2
avoid speculative guardshttps://github.com/python/cpython/pull/146397/commits/53dd383c7da542915893d40b7d4f266e3e2b5039
https://github.com/eendebakpt
eendebakpthttps://github.com/python/cpython/commits?author=eendebakpt
53dd383https://github.com/python/cpython/pull/146397/commits/53dd383c7da542915893d40b7d4f266e3e2b5039
https://github.com/python/cpython/tree/53dd383c7da542915893d40b7d4f266e3e2b5039
fix testhttps://github.com/python/cpython/pull/146397/commits/44ee7f07ae9c9c7bbc8569b1873a1e09f8aa0dff
https://github.com/eendebakpt
eendebakpthttps://github.com/python/cpython/commits?author=eendebakpt
44ee7f0https://github.com/python/cpython/pull/146397/commits/44ee7f07ae9c9c7bbc8569b1873a1e09f8aa0dff
https://github.com/python/cpython/tree/44ee7f07ae9c9c7bbc8569b1873a1e09f8aa0dff
Merge branch 'main' into jit_float_truedivhttps://github.com/python/cpython/pull/146397/commits/e302112619de9286151df35e9da802e59ec2bfdb
https://github.com/eendebakpt
eendebakpthttps://github.com/python/cpython/commits?author=eendebakpt
e302112https://github.com/python/cpython/pull/146397/commits/e302112619de9286151df35e9da802e59ec2bfdb
https://github.com/python/cpython/tree/e302112619de9286151df35e9da802e59ec2bfdb
Regenerate pycore_uop_ids.h and pycore_uop_metadata.h with truediv float opshttps://github.com/python/cpython/pull/146397/commits/d2c03bced625e3f837e96b3ccb1ead36801d9a50
https://github.com/eendebakpt
eendebakpthttps://github.com/python/cpython/commits?author=eendebakpt
d2c03bchttps://github.com/python/cpython/pull/146397/commits/d2c03bced625e3f837e96b3ccb1ead36801d9a50
https://github.com/python/cpython/tree/d2c03bced625e3f837e96b3ccb1ead36801d9a50
Merge branch 'main' into jit_float_truedivhttps://github.com/python/cpython/pull/146397/commits/dba0bb334a93fd2d55d6774151443731ca4c7b01
https://github.com/eendebakpt
eendebakpthttps://github.com/python/cpython/commits?author=eendebakpt
dba0bb3https://github.com/python/cpython/pull/146397/commits/dba0bb334a93fd2d55d6774151443731ca4c7b01
https://github.com/python/cpython/tree/dba0bb334a93fd2d55d6774151443731ca4c7b01
Merge branch 'main' into jit_float_truedivhttps://github.com/python/cpython/pull/146397/commits/8615577080c447199833dbedf4adb762928d30ac
https://github.com/eendebakpt
eendebakpthttps://github.com/python/cpython/commits?author=eendebakpt
8615577https://github.com/python/cpython/pull/146397/commits/8615577080c447199833dbedf4adb762928d30ac
https://github.com/python/cpython/tree/8615577080c447199833dbedf4adb762928d30ac
review commentshttps://github.com/python/cpython/pull/146397/commits/e715dac12d6f5e8ec927f758f7d32696a8125b91
https://github.com/eendebakpt
eendebakpthttps://github.com/python/cpython/commits?author=eendebakpt
e715dachttps://github.com/python/cpython/pull/146397/commits/e715dac12d6f5e8ec927f758f7d32696a8125b91
https://github.com/python/cpython/tree/e715dac12d6f5e8ec927f758f7d32696a8125b91
Merge branch 'main' into jit_float_truedivhttps://github.com/python/cpython/pull/146397/commits/925841c61785ada2a0bfb47ed38b0bc9aef625de
https://github.com/eendebakpt
eendebakpthttps://github.com/python/cpython/commits?author=eendebakpt
925841chttps://github.com/python/cpython/pull/146397/commits/925841c61785ada2a0bfb47ed38b0bc9aef625de
https://github.com/python/cpython/tree/925841c61785ada2a0bfb47ed38b0bc9aef625de
mark more returns as uniquehttps://github.com/python/cpython/pull/146397/commits/43f4987c77e2e4e675e9034ee67475d6a169214f
https://github.com/eendebakpt
eendebakpthttps://github.com/python/cpython/commits?author=eendebakpt
43f4987https://github.com/python/cpython/pull/146397/commits/43f4987c77e2e4e675e9034ee67475d6a169214f
https://github.com/python/cpython/tree/43f4987c77e2e4e675e9034ee67475d6a169214f
Merge branch 'main' into jit_float_truedivhttps://github.com/python/cpython/pull/146397/commits/a49018ea282f84ec09ee450bbd2c5f596d9b6f46
https://github.com/eendebakpt
eendebakpthttps://github.com/python/cpython/commits?author=eendebakpt
a49018ehttps://github.com/python/cpython/pull/146397/commits/a49018ea282f84ec09ee450bbd2c5f596d9b6f46
https://github.com/python/cpython/tree/a49018ea282f84ec09ee450bbd2c5f596d9b6f46
mark more returns as uniquehttps://github.com/python/cpython/pull/146397/commits/9cab90075e698c6ad5cc1a854cbe506411703f75
https://github.com/eendebakpt
eendebakpthttps://github.com/python/cpython/commits?author=eendebakpt
9cab900https://github.com/python/cpython/pull/146397/commits/9cab90075e698c6ad5cc1a854cbe506411703f75
https://github.com/python/cpython/tree/9cab90075e698c6ad5cc1a854cbe506411703f75
Merge branch 'main' into jit_float_truedivhttps://github.com/python/cpython/pull/146397/commits/b432e1a0509d8450c1e1c62d7a91fcc7b5383b83
https://github.com/eendebakpt
eendebakpthttps://github.com/python/cpython/commits?author=eendebakpt
b432e1ahttps://github.com/python/cpython/pull/146397/commits/b432e1a0509d8450c1e1c62d7a91fcc7b5383b83
https://github.com/python/cpython/tree/b432e1a0509d8450c1e1c62d7a91fcc7b5383b83
Merge branch 'main' into jit_float_truedivhttps://github.com/python/cpython/pull/146397/commits/0c8965401d41e2abdba348cb631da8f466afdc3f
https://github.com/eendebakpt
eendebakpthttps://github.com/python/cpython/commits?author=eendebakpt
0c89654https://github.com/python/cpython/pull/146397/commits/0c8965401d41e2abdba348cb631da8f466afdc3f
https://github.com/python/cpython/tree/0c8965401d41e2abdba348cb631da8f466afdc3f
Merge branch 'main' into jit_float_truedivhttps://github.com/python/cpython/pull/146397/commits/fa97ab307c2ae2d97d41e4ef2d6517380f11adeb
https://github.com/eendebakpt
eendebakpthttps://github.com/python/cpython/commits?author=eendebakpt
fa97ab3https://github.com/python/cpython/pull/146397/commits/fa97ab307c2ae2d97d41e4ef2d6517380f11adeb
https://github.com/python/cpython/tree/fa97ab307c2ae2d97d41e4ef2d6517380f11adeb
add back recording ops and guardshttps://github.com/python/cpython/pull/146397/commits/3ba0c85add2009c850f5f65a2b42d2b62ed4e56f
https://github.com/eendebakpt
eendebakpthttps://github.com/python/cpython/commits?author=eendebakpt
3ba0c85https://github.com/python/cpython/pull/146397/commits/3ba0c85add2009c850f5f65a2b42d2b62ed4e56f
https://github.com/python/cpython/tree/3ba0c85add2009c850f5f65a2b42d2b62ed4e56f
simplifyhttps://github.com/python/cpython/pull/146397/commits/e7fdb0458c9b56ef34d0d96147ef1b890d3c74e0
https://github.com/eendebakpt
eendebakpthttps://github.com/python/cpython/commits?author=eendebakpt
e7fdb04https://github.com/python/cpython/pull/146397/commits/e7fdb0458c9b56ef34d0d96147ef1b890d3c74e0
https://github.com/python/cpython/tree/e7fdb0458c9b56ef34d0d96147ef1b890d3c74e0
Merge remote-tracking branch 'upstream/main' into pr/146397https://github.com/python/cpython/pull/146397/commits/44666f7b3f03936e0a248af9aad63f8e92e9d6f8
https://github.com/Fidget-Spinner
Fidget-Spinnerhttps://github.com/python/cpython/commits?author=Fidget-Spinner
44666f7https://github.com/python/cpython/pull/146397/commits/44666f7b3f03936e0a248af9aad63f8e92e9d6f8
https://github.com/python/cpython/tree/44666f7b3f03936e0a248af9aad63f8e92e9d6f8
Merge branch 'jit_float_truediv' of github.com:eendebakpt/cpython into pr/146397https://github.com/python/cpython/pull/146397/commits/9a8c1436cddef605df6ec397311acd27f805d75b
https://github.com/Fidget-Spinner
Fidget-Spinnerhttps://github.com/python/cpython/commits?author=Fidget-Spinner
9a8c143https://github.com/python/cpython/pull/146397/commits/9a8c1436cddef605df6ec397311acd27f805d75b
https://github.com/python/cpython/tree/9a8c1436cddef605df6ec397311acd27f805d75b
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.