summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2020-07-17 11:07:22 +0300
committerDmitry Stogov <dmitry@zend.com>2020-07-17 11:07:22 +0300
commit6b2c4be48a7ed6eb6c4a1dea051bd01fc7fbed8c (patch)
treeab0c2f83acd5865d03a64578ad89526cfb81bb60
parente0af92c16e42bafe542f08268be73b807d550be0 (diff)
downloadphp-git-6b2c4be48a7ed6eb6c4a1dea051bd01fc7fbed8c.tar.gz
JMP optimization
-rw-r--r--ext/opcache/jit/zend_jit_x86.dasc4
1 files changed, 3 insertions, 1 deletions
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
}