René's URL Explorer Experiment


Title: gh-87092: compiler's CFG construction moved to after codegen stage by iritkatriel · Pull Request #102320 · python/cpython · GitHub

Open Graph Title: gh-87092: compiler's CFG construction moved to after codegen stage by iritkatriel · Pull Request #102320 · python/cpython

X Title: gh-87092: compiler's CFG construction moved to after codegen stage by iritkatriel · Pull Request #102320 · python/cpython

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

Open Graph Description: After we merge this I will make a PR to move codegen to a separate file. Skipping news - we will have one entry for the entire refactor once it's done. Issue: Split compiler into code-gen, op...

X Description: After we merge this I will make a PR to move codegen to a separate file. Skipping news - we will have one entry for the entire refactor once it's done. Issue: Split compiler into code-gen...

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/commits(.:format)
route-controllerpull_requests
route-actioncommits
fetch-noncev2:b28c5f96-73f8-58e8-86f7-cbc459d6fdcf
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE9C0:38004D:3591E0:477F21:6969C363
html-safe-nonce108c7a332bd67c46ed3bc3afb371ce8072e37c2190219f6ae077dc2c60f9c265
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFOUMwOjM4MDA0RDozNTkxRTA6NDc3RjIxOjY5NjlDMzYzIiwidmlzaXRvcl9pZCI6IjQ4NDg5MTMxNjE0OTE0MzIyOTEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacb1ba1a570bd929ff44c9afcc7560ede9cf8c05e05a49f58b187c7733339e2580
hovercard-subject-tagpull_request:1256966373
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/102320/commits
twitter:imagehttps://opengraph.githubassets.com/cf0c784a2c85fdaca3bc56adf4cba449363bd42bc16ea17fca0766fb6f7d3485/python/cpython/pull/102320
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/cf0c784a2c85fdaca3bc56adf4cba449363bd42bc16ea17fca0766fb6f7d3485/python/cpython/pull/102320
og:image:altAfter we merge this I will make a PR to move codegen to a separate file. Skipping news - we will have one entry for the entire refactor once it's done. Issue: Split compiler into code-gen, op...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameiritkatriel
hostnamegithub.com
expected-hostnamegithub.com
Noneacedec8b5f975d9e3d494ddd8f949b0b8a0de59d393901e26f73df9dcba80056
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
release83c08c21cdda978090dc44364b71aa5bc6dcea79
ui-targetcanary-1
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/102320/commits#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F102320%2Fcommits
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
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
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
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/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%2F102320%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/102320/commits
Reloadhttps://github.com/python/cpython/pull/102320/commits
Reloadhttps://github.com/python/cpython/pull/102320/commits
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/102320/commits
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 33.9k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 71.1k 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.1k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects 31 https://github.com/python/cpython/projects
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/python/cpython/security
Please reload this pagehttps://github.com/python/cpython/pull/102320/commits
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 https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
iritkatrielhttps://github.com/iritkatriel
python:mainhttps://github.com/python/cpython/tree/main
iritkatriel:instruction-streamhttps://github.com/iritkatriel/cpython/tree/instruction-stream
Conversationhttps://github.com/python/cpython/pull/102320
Commits26 (26)https://github.com/python/cpython/pull/102320/commits
Checkshttps://github.com/python/cpython/pull/102320/checks
Files changedhttps://github.com/python/cpython/pull/102320/files
gh-87092: compiler's CFG construction moved to after codegen stagehttps://github.com/python/cpython/pull/102320/commits#top
iritkatrielhttps://github.com/iritkatriel
python:mainhttps://github.com/python/cpython/tree/main
iritkatriel:instruction-streamhttps://github.com/iritkatriel/cpython/tree/instruction-stream
compiler uses instruction stream to create codeobjectshttps://github.com/python/cpython/pull/102320/commits/43df9b3a07cf00f691051c33036e482bac14027f
https://github.com/iritkatriel
iritkatrielhttps://github.com/python/cpython/commits?author=iritkatriel
43df9b3https://github.com/python/cpython/pull/102320/commits/43df9b3a07cf00f691051c33036e482bac14027f
https://github.com/python/cpython/tree/43df9b3a07cf00f691051c33036e482bac14027f
remove unused codehttps://github.com/python/cpython/pull/102320/commits/2b43f88579514427f7f4a49d7996fa3a5d22bacc
https://github.com/iritkatriel
iritkatrielhttps://github.com/python/cpython/commits?author=iritkatriel
2b43f88https://github.com/python/cpython/pull/102320/commits/2b43f88579514427f7f4a49d7996fa3a5d22bacc
https://github.com/python/cpython/tree/2b43f88579514427f7f4a49d7996fa3a5d22bacc
use newg all the wayhttps://github.com/python/cpython/pull/102320/commits/52a1d1d089a5c95e964539c582a6df07dae6dddc
https://github.com/iritkatriel
iritkatrielhttps://github.com/python/cpython/commits?author=iritkatriel
52a1d1dhttps://github.com/python/cpython/pull/102320/commits/52a1d1d089a5c95e964539c582a6df07dae6dddc
https://github.com/python/cpython/tree/52a1d1d089a5c95e964539c582a6df07dae6dddc
remove double processinghttps://github.com/python/cpython/pull/102320/commits/9b737f1d6e8abbeab6ce5a7db535908cc1d9b96a
https://github.com/iritkatriel
iritkatrielhttps://github.com/python/cpython/commits?author=iritkatriel
9b737f1https://github.com/python/cpython/pull/102320/commits/9b737f1d6e8abbeab6ce5a7db535908cc1d9b96a
https://github.com/python/cpython/tree/9b737f1d6e8abbeab6ce5a7db535908cc1d9b96a
split cfg_builder_use_label/cfg_builder_addop to separate versions for codegen and cfg_builderhttps://github.com/python/cpython/pull/102320/commits/083b8b17371b7e4246913fb1e93044e17537cfcc
https://github.com/iritkatriel
iritkatrielhttps://github.com/python/cpython/commits?author=iritkatriel
083b8b1https://github.com/python/cpython/pull/102320/commits/083b8b17371b7e4246913fb1e93044e17537cfcc
https://github.com/python/cpython/tree/083b8b17371b7e4246913fb1e93044e17537cfcc
codegen functions take an instr_streamhttps://github.com/python/cpython/pull/102320/commits/a56bafed32cf18778bb03f6ec803a5499c7af08e
https://github.com/iritkatriel
iritkatrielhttps://github.com/python/cpython/commits?author=iritkatriel
a56bafehttps://github.com/python/cpython/pull/102320/commits/a56bafed32cf18778bb03f6ec803a5499c7af08e
https://github.com/python/cpython/tree/a56bafed32cf18778bb03f6ec803a5499c7af08e
free isntr_stream. Attach it to compiluer_unit (not cfg_builder)https://github.com/python/cpython/pull/102320/commits/8be1b288861acd639514b89f1a2f138ae32240e0
https://github.com/iritkatriel
iritkatrielhttps://github.com/python/cpython/commits?author=iritkatriel
8be1b28https://github.com/python/cpython/pull/102320/commits/8be1b288861acd639514b89f1a2f138ae32240e0
https://github.com/python/cpython/tree/8be1b288861acd639514b89f1a2f138ae32240e0
move things aroundhttps://github.com/python/cpython/pull/102320/commits/741f77367f0ea1c68fb315ba5754972a27fe1a82
https://github.com/iritkatriel
iritkatrielhttps://github.com/python/cpython/commits?author=iritkatriel
741f773https://github.com/python/cpython/pull/102320/commits/741f77367f0ea1c68fb315ba5754972a27fe1a82
https://github.com/python/cpython/tree/741f77367f0ea1c68fb315ba5754972a27fe1a82
labels generated by instr_stream instead of cfg_builderhttps://github.com/python/cpython/pull/102320/commits/fb0752503c25bcd7d2294d034f2adfc16448198c
https://github.com/iritkatriel
iritkatrielhttps://github.com/python/cpython/commits?author=iritkatriel
fb07525https://github.com/python/cpython/pull/102320/commits/fb0752503c25bcd7d2294d034f2adfc16448198c
https://github.com/python/cpython/tree/fb0752503c25bcd7d2294d034f2adfc16448198c
add implicit RETURN NONE to the streamhttps://github.com/python/cpython/pull/102320/commits/1b06bf873325e476fdb2616a02726119716837d5
https://github.com/iritkatriel
iritkatrielhttps://github.com/python/cpython/commits?author=iritkatriel
1b06bf8https://github.com/python/cpython/pull/102320/commits/1b06bf873325e476fdb2616a02726119716837d5
https://github.com/python/cpython/tree/1b06bf873325e476fdb2616a02726119716837d5
remove u_cfg_builderhttps://github.com/python/cpython/pull/102320/commits/142a7f14129bb40195bf65f1a1738b8b4f61724d
https://github.com/iritkatriel
iritkatrielhttps://github.com/python/cpython/commits?author=iritkatriel
142a7f1https://github.com/python/cpython/pull/102320/commits/142a7f14129bb40195bf65f1a1738b8b4f61724d
https://github.com/python/cpython/tree/142a7f14129bb40195bf65f1a1738b8b4f61724d
init the cfg_builder in instr_stream_to_cfghttps://github.com/python/cpython/pull/102320/commits/f9f844342b87fc00f5a007964dd18950921401e0
https://github.com/iritkatriel
iritkatrielhttps://github.com/python/cpython/commits?author=iritkatriel
f9f8443https://github.com/python/cpython/pull/102320/commits/f9f844342b87fc00f5a007964dd18950921401e0
https://github.com/python/cpython/tree/f9f844342b87fc00f5a007964dd18950921401e0
stream->sequencehttps://github.com/python/cpython/pull/102320/commits/f6fcde97e448ddd0ce1b6723cd83f5a230691913
https://github.com/iritkatriel
iritkatrielhttps://github.com/python/cpython/commits?author=iritkatriel
f6fcde9https://github.com/python/cpython/pull/102320/commits/f6fcde97e448ddd0ce1b6723cd83f5a230691913
https://github.com/python/cpython/tree/f6fcde97e448ddd0ce1b6723cd83f5a230691913
instr->cfg_instr, codegen_instr->instrhttps://github.com/python/cpython/pull/102320/commits/84f5a9d0a0b6409bea0bda698ec7e6ce52096690
https://github.com/iritkatriel
iritkatrielhttps://github.com/python/cpython/commits?author=iritkatriel
84f5a9dhttps://github.com/python/cpython/pull/102320/commits/84f5a9d0a0b6409bea0bda698ec7e6ce52096690
https://github.com/python/cpython/tree/84f5a9d0a0b6409bea0bda698ec7e6ce52096690
make sure we always emit something to jump to at the endhttps://github.com/python/cpython/pull/102320/commits/cd0225d3aefd9023d626dc3c1d9c76a48a2165c2
https://github.com/iritkatriel
iritkatrielhttps://github.com/python/cpython/commits?author=iritkatriel
cd0225dhttps://github.com/python/cpython/pull/102320/commits/cd0225d3aefd9023d626dc3c1d9c76a48a2165c2
https://github.com/python/cpython/tree/cd0225d3aefd9023d626dc3c1d9c76a48a2165c2
INSTR_STREAM --> INSTR_SEQUENCEhttps://github.com/python/cpython/pull/102320/commits/b8f4acf3cc01f02d37a895f92e047572d1b742fd
https://github.com/iritkatriel
iritkatrielhttps://github.com/python/cpython/commits?author=iritkatriel
b8f4acfhttps://github.com/python/cpython/pull/102320/commits/b8f4acf3cc01f02d37a895f92e047572d1b742fd
https://github.com/python/cpython/tree/b8f4acf3cc01f02d37a895f92e047572d1b742fd
free the cfg_builder in the test harnesshttps://github.com/python/cpython/pull/102320/commits/258f14203c141f214c4c5bd3ff54c7529139e3ce
https://github.com/iritkatriel
iritkatrielhttps://github.com/python/cpython/commits?author=iritkatriel
258f142https://github.com/python/cpython/pull/102320/commits/258f14203c141f214c4c5bd3ff54c7529139e3ce
https://github.com/python/cpython/tree/258f14203c141f214c4c5bd3ff54c7529139e3ce
Merge branch 'main' into instruction-streamhttps://github.com/python/cpython/pull/102320/commits/e5653eecdf5908a88db7dd9fd802230793519a3e
https://github.com/iritkatriel
iritkatrielhttps://github.com/python/cpython/commits?author=iritkatriel
e5653eehttps://github.com/python/cpython/pull/102320/commits/e5653eecdf5908a88db7dd9fd802230793519a3e
https://github.com/python/cpython/tree/e5653eecdf5908a88db7dd9fd802230793519a3e
Merge branch 'main' into instruction-streamhttps://github.com/python/cpython/pull/102320/commits/788da74bf72200b0528a388c4c02af1dc2812cf6
https://github.com/iritkatriel
iritkatrielhttps://github.com/python/cpython/commits?author=iritkatriel
788da74https://github.com/python/cpython/pull/102320/commits/788da74bf72200b0528a388c4c02af1dc2812cf6
https://github.com/python/cpython/tree/788da74bf72200b0528a388c4c02af1dc2812cf6
#ifndef NDEBUG around cfg_builder_checkhttps://github.com/python/cpython/pull/102320/commits/fd7f2b3a4e3237fa502e28f6abc6f1209f27dae2
https://github.com/iritkatriel
iritkatrielhttps://github.com/python/cpython/commits?author=iritkatriel
fd7f2b3https://github.com/python/cpython/pull/102320/commits/fd7f2b3a4e3237fa502e28f6abc6f1209f27dae2
https://github.com/python/cpython/tree/fd7f2b3a4e3237fa502e28f6abc6f1209f27dae2
create shared helper function for resizing arrayshttps://github.com/python/cpython/pull/102320/commits/57fbe36db1cecf27762698cdb280b493f170ddc4
https://github.com/iritkatriel
iritkatrielhttps://github.com/python/cpython/commits?author=iritkatriel
57fbe36https://github.com/python/cpython/pull/102320/commits/57fbe36db1cecf27762698cdb280b493f170ddc4
https://github.com/python/cpython/tree/57fbe36db1cecf27762698cdb280b493f170ddc4
remove obsolete commenthttps://github.com/python/cpython/pull/102320/commits/dc9f1f51e927e3833848b9d4e52fd6d4f0d695e9
https://github.com/iritkatriel
iritkatrielhttps://github.com/python/cpython/commits?author=iritkatriel
dc9f1f5https://github.com/python/cpython/pull/102320/commits/dc9f1f51e927e3833848b9d4e52fd6d4f0d695e9
https://github.com/python/cpython/tree/dc9f1f51e927e3833848b9d4e52fd6d4f0d695e9
Merge branch 'main' into instruction-streamhttps://github.com/python/cpython/pull/102320/commits/f20e4803436260d40f8613c7da7ea9b355e6d1b8
https://github.com/iritkatriel
iritkatrielhttps://github.com/python/cpython/commits?author=iritkatriel
f20e480https://github.com/python/cpython/pull/102320/commits/f20e4803436260d40f8613c7da7ea9b355e6d1b8
https://github.com/python/cpython/tree/f20e4803436260d40f8613c7da7ea9b355e6d1b8
address code reviewhttps://github.com/python/cpython/pull/102320/commits/fa1c66ab7b7805fd6bb035c352808371d00186f6
https://github.com/iritkatriel
iritkatrielhttps://github.com/python/cpython/commits?author=iritkatriel
fa1c66ahttps://github.com/python/cpython/pull/102320/commits/fa1c66ab7b7805fd6bb035c352808371d00186f6
https://github.com/python/cpython/tree/fa1c66ab7b7805fd6bb035c352808371d00186f6
tweak commentshttps://github.com/python/cpython/pull/102320/commits/3528176db14f5ea8480d91b3c12eeb1a1f8121da
https://github.com/iritkatriel
iritkatrielhttps://github.com/python/cpython/commits?author=iritkatriel
3528176https://github.com/python/cpython/pull/102320/commits/3528176db14f5ea8480d91b3c12eeb1a1f8121da
https://github.com/python/cpython/tree/3528176db14f5ea8480d91b3c12eeb1a1f8121da
index -> idx to avoid github's hilightinghttps://github.com/python/cpython/pull/102320/commits/fb13e36fbed8c66236ab6bdf584b5f421c23223b
https://github.com/iritkatriel
iritkatrielhttps://github.com/python/cpython/commits?author=iritkatriel
fb13e36https://github.com/python/cpython/pull/102320/commits/fb13e36fbed8c66236ab6bdf584b5f421c23223b
https://github.com/python/cpython/tree/fb13e36fbed8c66236ab6bdf584b5f421c23223b
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.