Skip to content

Commit 24ac326

Browse files
committed
Remove unnecessary checks in sym_set_const
1 parent d828f8c commit 24ac326

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Python/optimizer_symbols.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -388,10 +388,7 @@ _Py_uop_sym_set_const(JitOptContext *ctx, JitOptRef ref, PyObject *const_val)
388388
make_const(sym, const_val);
389389
return;
390390
case JIT_SYM_PREDICATE_TAG:
391-
if (!PyBool_Check(const_val) ||
392-
(_Py_uop_sym_is_const(ctx, ref) &&
393-
_Py_uop_sym_get_const(ctx, ref) != const_val))
394-
{
391+
if (!PyBool_Check(const_val)) {
395392
sym_set_bottom(ctx, sym);
396393
return;
397394
}

0 commit comments

Comments
 (0)