From: Dmitry Stogov Date: Fri, 17 Jul 2020 08:07:22 +0000 (+0300) Subject: JMP optimization X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6b2c4be48a7ed6eb6c4a1dea051bd01fc7fbed8c;p=php JMP optimization --- diff --git a/ext/opcache/jit/zend_jit_x86.dasc b/ext/opcache/jit/zend_jit_x86.dasc index 75f7131f80..6a2fa0a7c8 100644 --- a/ext/opcache/jit/zend_jit_x86.dasc +++ b/ext/opcache/jit/zend_jit_x86.dasc @@ -7649,7 +7649,9 @@ static int zend_jit_bool_jmpznz(dasm_State **Dst, const zend_op *opline, const z if (!jmp_done) { if (exit_addr) { if (branch_opcode == ZEND_JMPNZ || branch_opcode == ZEND_JMPNZ_EX) { - | jmp >9 + if (op1_info & MAY_BE_LONG) { + | jmp >9 + } } else if (op1_info & MAY_BE_LONG) { | jmp &exit_addr }