gh-130415: Narrowing to constants in branches involving is comparisons with a constant (GH-143895)

This commit is contained in:
reiden 2026-01-22 17:37:45 +08:00 committed by GitHub
parent 6181b69970
commit 0b08438ea6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 241 additions and 20 deletions

View file

@ -247,6 +247,8 @@ add_op(JitOptContext *ctx, _PyUOpInstruction *this_instr,
#define sym_is_compact_int _Py_uop_sym_is_compact_int
#define sym_new_compact_int _Py_uop_sym_new_compact_int
#define sym_new_truthiness _Py_uop_sym_new_truthiness
#define sym_new_predicate _Py_uop_sym_new_predicate
#define sym_apply_predicate_narrowing _Py_uop_sym_apply_predicate_narrowing
#define JUMP_TO_LABEL(label) goto label;