◐ Shell
clean mode source ↗

gh-126835: Disable tuple folding in the AST optimizer by tomasr8 · Pull Request #128802 · python/cpython

added 2 commits

January 13, 2025 22:09

@Eclips4

Eclips4

Eclips4

@Eclips4

@Eclips4

@Eclips4 Eclips4 marked this pull request as ready for review

January 21, 2025 14:11

Eclips4

iritkatriel

Eclips4 added a commit that referenced this pull request

Feb 1, 2025
…en to CFG (#129426)

Codegen phase has an optimization that transforms
```
LOAD_CONST x
LOAD_CONST y
LOAD_CONXT z
BUILD_LIST/BUILD_SET (3)
```
->
```
BUILD_LIST/BUILD_SET (0)
LOAD_CONST (x, y, z)
LIST_EXTEND/SET_UPDATE 1
```
This optimization has now been moved to CFG phase to make #128802 work.


Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Co-authored-by: Yan Yanchii <yyanchiy@gmail.com>

srinivasreddy pushed a commit to srinivasreddy/cpython that referenced this pull request

Feb 7, 2025
… codegen to CFG (python#129426)

Codegen phase has an optimization that transforms
```
LOAD_CONST x
LOAD_CONST y
LOAD_CONXT z
BUILD_LIST/BUILD_SET (3)
```
->
```
BUILD_LIST/BUILD_SET (0)
LOAD_CONST (x, y, z)
LIST_EXTEND/SET_UPDATE 1
```
This optimization has now been moved to CFG phase to make python#128802 work.


Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Co-authored-by: Yan Yanchii <yyanchiy@gmail.com>

@Eclips4 Eclips4 marked this pull request as ready for review

February 22, 2025 10:38

@Eclips4 Eclips4 marked this pull request as ready for review

February 22, 2025 13:29

@Eclips4

tomasr8

WolframAlph

@Eclips4