Skip to content

Commit

Permalink
gh-128195: Add _REPLACE_WITH_TRUE to the tier2 optimizer (GH-128203)
Browse files Browse the repository at this point in the history
Add `_REPLACE_WITH_TRUE` to the tier2 optimizer
  • Loading branch information
WolframAlph authored Dec 23, 2024
1 parent d61542b commit 30efede
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Python/optimizer_bytecodes.c
Original file line number Diff line number Diff line change
Expand Up @@ -899,6 +899,10 @@ dummy_func(void) {
(void)version;
}

op(_REPLACE_WITH_TRUE, (value -- res)) {
res = sym_new_const(ctx, Py_True);
}

// END BYTECODES //

}
2 changes: 1 addition & 1 deletion Python/optimizer_cases.c.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 30efede

Please sign in to comment.