summaryrefslogtreecommitdiffstats
path: root/Python/optimizer.c
diff options
context:
space:
mode:
authorKirill Podoprigora <kirill.bast9@mail.ru>2025-02-01 11:39:44 (GMT)
committerGitHub <noreply@github.com>2025-02-01 11:39:44 (GMT)
commit7d0521d5fc32f4837257e89e6ead652223ecfada (patch)
tree881e4082b7cc1d347ecd8408c464d4a4379b54b1 /Python/optimizer.c
parentd89a5f6a6e65511a5f6e0618c4c30a7aa5aba56a (diff)
downloadcpython-7d0521d5fc32f4837257e89e6ead652223ecfada.zip
cpython-7d0521d5fc32f4837257e89e6ead652223ecfada.tar.gz
cpython-7d0521d5fc32f4837257e89e6ead652223ecfada.tar.bz2
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>
Diffstat (limited to 'Python/optimizer.c')
0 files changed, 0 insertions, 0 deletions