-
-
Notifications
You must be signed in to change notification settings - Fork 31.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
flowgraph optimize_cfg Assertion for if-else-expression with if-else-expression as condition #109889
Comments
cc: @iritkatriel |
The optimizer removes NOPs which are redundant (don't have important line number info attached). But there is a bug where it misses the case where there is a basic block that contains a single such NOP (and nothing else). This is not a correctness issue, it's only an optimization failing. I will make a PR for 3.12 to just remove the assertion. In 3.13 I will fix this optimization. |
I mean remove the assertion in 3.12.0. We can fix in 3.12.1. |
…imization of a redundant NOP
…o lineno when looking for the next instruction's lineno
…o lineno when looking for the next instruction's lineno
…o lineno when looking for the next instruction's lineno
…o lineno when looking for the next instruction's lineno
…ith no lineno when looking for the next instruction's lineno (#109987)
…NOPs with no lineno when looking for the next instruction's lineno (pythonGH-109987) (cherry picked from commit f580edc) Co-authored-by: Irit Katriel <[email protected]>
…NOPs with no lineno when looking for the next instruction's lineno (python#109987)
… NOPs with no lineno when looking for the next instruction's lineno (GH-109987) (#110048) gh-109889: fix compiler's redundant NOP detection to look past NOPs with no lineno when looking for the next instruction's lineno (GH-109987) (cherry picked from commit f580edc) Co-authored-by: Irit Katriel <[email protected]>
…NOPs with no lineno when looking for the next instruction's lineno (python#109987)
Bug report
Bug description:
output (Python 3.12.0rc3+):
tested with the current 3.12 branch (538f505)
CPython versions tested on:
3.12
Operating systems tested on:
Linux
Linked PRs
The text was updated successfully, but these errors were encountered: