Uh oh!
There was an error while loading. Please reload this page.
gh-126835: Move constant subscript folding to CFG - #129568
Conversation
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
iritkatriel
commented
Feb 2, 2025
No, we can merge this first so you can make progress with the folding business. I'm still working on that one. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
There was a problem hiding this comment.
LGTM. I'll wait until the test case is split (#129568 (comment)) and then merge it. However, I think it's worth adding a NEWS entry as all our PRs related to moving the folding optimization from ast to CFG will require it.
iritkatriel
commented
Feb 3, 2025
Moving folding from ast construction to codegen/flowgraph definitely needs a news entry because ast.parse() is in the stdlib. Moving a folding from codegen to flow graph is no that exposed to users, but we might as well mention it in the whatsnew in case behaviour changed in some edge case and someone will want to look up why it may be so. That said, one whatnew entry about all the folding moves will probably be enough (pointing to multiple issues if need be). |
Agreed. So let's do it when all the folding has been moved. |
I have split tests and added |
bedevere-bot
commented
Feb 4, 2025
|
bedevere-bot
commented
Feb 4, 2025
|
bedevere-bot
commented
Feb 4, 2025
|
bedevere-bot
commented
Feb 4, 2025
|
bedevere-bot
commented
Feb 4, 2025
|
bedevere-bot
commented
Feb 4, 2025
|
bedevere-bot
commented
Feb 4, 2025
|
vstinner
commented
Feb 4, 2025
@WolframAlph@Eclips4: This change introduced a reference leak, see #129635. |
WolframAlph
commented
Feb 4, 2025
Move folding of constant subscription from AST optimizer to CFG. Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Move folding of constant subscription from AST optimizer to CFG. Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
cc @Eclips4@tomasr8