diff options
author | Mark Shannon <mark@hotpy.org> | 2024-03-05 15:06:00 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-05 15:06:00 (GMT) |
commit | 0c81ce13602b88fd59f23f701ed8dc377d74e76e (patch) | |
tree | dbcf462118f71fa97906409414099cdd2b8ca241 /Include | |
parent | c91bdf86ef1cf9365b61a46aa2e51e5d1932b00a (diff) | |
download | cpython-0c81ce13602b88fd59f23f701ed8dc377d74e76e.zip cpython-0c81ce13602b88fd59f23f701ed8dc377d74e76e.tar.gz cpython-0c81ce13602b88fd59f23f701ed8dc377d74e76e.tar.bz2 |
GH-115819: Eliminate Boolean guards when value is known (GH-116355)
Diffstat (limited to 'Include')
-rw-r--r-- | Include/internal/pycore_optimizer.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Include/internal/pycore_optimizer.h b/Include/internal/pycore_optimizer.h index 7c97772..fcead4d 100644 --- a/Include/internal/pycore_optimizer.h +++ b/Include/internal/pycore_optimizer.h @@ -90,6 +90,7 @@ extern _Py_UopsSymbol *_Py_uop_sym_new_type( _Py_UOpsContext *ctx, PyTypeObject *typ); extern _Py_UopsSymbol *_Py_uop_sym_new_const(_Py_UOpsContext *ctx, PyObject *const_val); extern _Py_UopsSymbol *_Py_uop_sym_new_null(_Py_UOpsContext *ctx); +extern bool _Py_uop_sym_has_type(_Py_UopsSymbol *sym); extern bool _Py_uop_sym_matches_type(_Py_UopsSymbol *sym, PyTypeObject *typ); extern bool _Py_uop_sym_set_null(_Py_UopsSymbol *sym); extern bool _Py_uop_sym_set_non_null(_Py_UopsSymbol *sym); |