Skip to content

Commit 0fa27fe

Browse files
WolframAlphsrinivasreddy
authored andcommitted
pythongh-128195: Add _REPLACE_WITH_TRUE to the tier2 optimizer (pythonGH-128203)
Add `_REPLACE_WITH_TRUE` to the tier2 optimizer
1 parent b8b619f commit 0fa27fe

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Python/optimizer_bytecodes.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -899,6 +899,10 @@ dummy_func(void) {
899899
(void)version;
900900
}
901901

902+
op(_REPLACE_WITH_TRUE, (value -- res)) {
903+
res = sym_new_const(ctx, Py_True);
904+
}
905+
902906
// END BYTECODES //
903907

904908
}

Python/optimizer_cases.c.h

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)