SIGN IN SIGN UP
python / cpython UNCLAIMED

The Python programming language

72150 0 56 Python

gh-126835: Move optimization of constant sequence creation from codegen 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>
K
Kirill Podoprigora committed
7d0521d5fc32f4837257e89e6ead652223ecfada
Parent: d89a5f6
Committed by GitHub <noreply@github.com> on 2/1/2025, 11:39:44 AM