8000 gh-126835: Move constant subscript folding to CFG by WolframAlph · Pull Request #129568 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-126835: Move constant subscript folding to CFG #129568

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

Merged
merged 10 commits into from
Feb 4, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update Python/flowgraph.c
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
  • Loading branch information
WolframAlph and iritkatriel authored Feb 2, 2025
commit 729e813cae841616bcc70195c4a0b02a101c21b8
2 changes: 1 addition & 1 deletion Python/flowgraph.c
Original file line number Diff line number Diff line change
Expand Up @@ -1473,7 +1473,7 @@ find_load_const_pair(basicblock *bb, int start, cfg_instr **first, cfg_instr **s
/* Determine opcode & oparg for freshly folded constant. */
static int
newop_from_folded(PyObject *newconst, PyObject *consts,
PyObject *const_cache, int *newopcode, int *newoparg)
PyObject *const_cache, int *newopcode, int *newoparg)
{
if (PyLong_CheckExact(newconst)) {
int overflow;
Expand Down
Loading
0