mirror of
https://github.com/python/cpython.git
synced 2026-02-06 09:50:43 +00:00
gh-130415: Narrow types to constants in branches involving specialized comparisons with a constant (GH-144150)
This commit is contained in:
parent
29840247ff
commit
6d972e0104
6 changed files with 360 additions and 8 deletions
|
|
@ -250,6 +250,11 @@ add_op(JitOptContext *ctx, _PyUOpInstruction *this_instr,
|
|||
#define sym_new_predicate _Py_uop_sym_new_predicate
|
||||
#define sym_apply_predicate_narrowing _Py_uop_sym_apply_predicate_narrowing
|
||||
|
||||
/* Comparison oparg masks */
|
||||
#define COMPARE_LT_MASK 2
|
||||
#define COMPARE_GT_MASK 4
|
||||
#define COMPARE_EQ_MASK 8
|
||||
|
||||
#define JUMP_TO_LABEL(label) goto label;
|
||||
|
||||
static int
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue