FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-128195: Add `_REPLACE_WITH_TRUE` to the tier2 optimizer (GH-128203) · python/cpython@30efede · GitHub

/ cpython Public

Commit 30efede

Browse files
authored
gh-128195: Add _REPLACE_WITH_TRUE to the tier2 optimizer (GH-128203)
Add `_REPLACE_WITH_TRUE` to the tier2 optimizer
1 parent d61542b commit 30efede

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

‎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)

Back | FazBrowse Home | New Git URL