com php-src: Fixed incorrect invariant guard motion: ext/opcache/jit/zend_jit_trace.c

From: Date: Wed, 11 Nov 2020 14:34:46 +0000
Subject: com php-src: Fixed incorrect invariant guard motion: ext/opcache/jit/zend_jit_trace.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-114132@lists.php.net to get a copy of this message
Commit: 2d2d42b2681b97de654b02c0edbac87dc94e0ce5 Author: Dmitry Stogov <dmitry@zend.com> Wed, 11 Nov 2020 17:34:46 +0300 Parents: de359c00b41477e80f587612898a957500ff2c0f Branches: PHP-8.0 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=2d2d42b2681b97de654b02c0edbac87dc94e0ce5 Log: Fixed incorrect invariant guard motion Changed paths: M ext/opcache/jit/zend_jit_trace.c Diff: diff --git a/ext/opcache/jit/zend_jit_trace.c b/ext/opcache/jit/zend_jit_trace.c index 85f09d3275d..41e81b63f74 100644 --- a/ext/opcache/jit/zend_jit_trace.c +++ b/ext/opcache/jit/zend_jit_trace.c @@ -2197,7 +2197,8 @@ propagate_arg: ssa_var_info[phi->sources[0]].type = MAY_BE_GUARD | (t & t0); } if ((t1 & (MAY_BE_ANY|MAY_BE_UNDEF|MAY_BE_REF)) != (t & (MAY_BE_ANY|MAY_BE_UNDEF|MAY_BE_REF))) { - if (is_checked_guard(tssa, ssa_opcodes, phi->sources[1], phi->ssa_var)) { + if (((t & t1) & (MAY_BE_ANY|MAY_BE_UNDEF|MAY_BE_REF)) != 0 + && is_checked_guard(tssa, ssa_opcodes, phi->sources[1], phi->ssa_var)) { ssa_var_info[phi->sources[1]].type = MAY_BE_GUARD | (t & t1); ssa_var_info[phi->ssa_var].type = t & ~MAY_BE_GUARD; }

« previous php.cvs (#114132) next »