GH-93678: refactor compiler so that optimizer does not need the assembler and compiler structs by iritkatriel · Pull Request #93842 · python/cpython · GitHub

github.com

Tin mới

iritkatriel:reduce_dependencty_on_compiler

GitHub CopilotWrite better code with AI

GitHub Copilot appDirect agents from issue to merge

ActionsAutomate any workflow

CodespacesInstant dev environments

IssuesPlan and track work

Code ReviewManage code changes

Code QualityEnforce quality at merge

GitHub Advanced SecurityFind and fix vulnerabilities

Code securitySecure your code as you build

Secret protectionStop leaks before they start

View all use cases

Financial services

View all industries

Software Development

GitHub SponsorsFund open source developers

Copilot for BusinessEnterprise-grade AI features

Premium SupportEnterprise-grade 24/7 support

Pull requests 2.6k

Security and quality 0

optimize_cfg does not require a struct compiler*

optimize_cfg does not require a struct assembler*

do not pass the whole assembler to functions that need only a_entry

Create struct assember just before assemble_emit. The other optimizer…

assemble_jump_offsets doesn't need the compiler

duplicate_exits_without_lineno can use b_next links to iterate

stackdepth doesn't need the compiler

push_cold_blocks_to_end and duplicate_exits_without_lineno do not nee…

awaiting core review

awaiting core review

remove 3 unused fields from struct assembler

remove obsolete comment

View reviewed changes

Learn more about hiding disruptive comments

The reason will be displayed to describe this comment to others. Learn more.

code review followup

entry --> entryblock for consistency

📜🤖 Added by blurb_it.

Merge remote-tracking branch 'upstream/main' into reduce_dependencty_…

Merge remote-tracking branch 'upstream/main' into reduce_dependencty_…

Merge branch 'main' into reduce_dependencty_on_compiler

🔨 test-with-buildbots

🔨 test-with-buildbots

direct unit tests for compiler optimisations faster-cpython/ideas#405

Revert 30935 defer bpo45162 to 312 (

emscripten-core/emscripten#17269

https://github.com/python/cpython/issue/89336