From 6b2c4be48a7ed6eb6c4a1dea051bd01fc7fbed8c Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Fri, 17 Jul 2020 11:07:22 +0300 Subject: [PATCH] JMP optimization --- ext/opcache/jit/zend_jit_x86.dasc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 } -- 2.50.1