Skip to content

Commit 5b01de8

Browse files
Apply suggestions from code review
Co-authored-by: Ken Jin <kenjin4096@gmail.com>
1 parent 67e24a7 commit 5b01de8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Optimize constant comparison for _COMPARE_OP_INT, _COMPARE_OP_FLOAT and _COMPARE_OP_STR in JIT builds
1+
Optimize constant comparison for ``_COMPARE_OP_INT``, ``_COMPARE_OP_FLOAT`` and ``_COMPARE_OP_STR`` in JIT builds

Tools/cases_generator/optimizer_generator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ def replace_opcode_if_evaluates_pure(
240240
if (sym_is_const(ctx, {outp.name})) {{
241241
PyObject *result = sym_get_const(ctx, {outp.name});
242242
if (_Py_IsImmortal(result)) {{
243-
// Replace with POP_TWO_LOAD_CONST_INLINE_BORROW since we have two inputs and an immortal result
243+
// Replace with _POP_TWO_LOAD_CONST_INLINE_BORROW since we have two inputs and an immortal result
244244
REPLACE_OP(this_instr, _POP_TWO_LOAD_CONST_INLINE_BORROW, 0, (uintptr_t)result);
245245
}}
246246
}}""")

0 commit comments

Comments
 (0)