[php-src] jit-arm64: Remove dead conditions

From: Date: Wed, 21 Apr 2021 10:46:10 +0000
Subject: [php-src] jit-arm64: Remove dead conditions
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-115724@lists.php.net to get a copy of this message
Author: Dmitry Stogov (dstogov) Date: 2021-04-21T13:45:40+03:00 Commit: https://github.com/php/php-src/commit/f43d9754c0fd74a9db5e1196156ce853af358181 Raw diff: https://github.com/php/php-src/commit/f43d9754c0fd74a9db5e1196156ce853af358181.diff Remove dead conditions Changed paths: M ext/opcache/jit/zend_jit_arm64.dasc Diff: diff --git a/ext/opcache/jit/zend_jit_arm64.dasc b/ext/opcache/jit/zend_jit_arm64.dasc index 40de06840fa9..3ca2662489b8 100644 --- a/ext/opcache/jit/zend_jit_arm64.dasc +++ b/ext/opcache/jit/zend_jit_arm64.dasc @@ -3070,7 +3070,7 @@ static int zend_jit_math_long_long(dasm_State **Dst, IS_SIGNED_32BIT(Z_LVAL_P(Z_ZV(op1_addr))) && is_power_of_two(Z_LVAL_P(Z_ZV(op1_addr)))))) { if (Z_MODE(op2_addr) == IS_CONST_ZVAL) { - if (Z_MODE(op2_addr) == IS_CONST_ZVAL && Z_LVAL_P(Z_ZV(op2_addr)) == 2) { + if (Z_LVAL_P(Z_ZV(op2_addr)) == 2) { if (Z_MODE(op1_addr) == IS_REG) { | adds Rx(result_reg), Rx(Z_REG(op1_addr)), Rx(Z_REG(op1_addr)) } else { @@ -3084,7 +3084,7 @@ static int zend_jit_math_long_long(dasm_State **Dst, | // TODO: overflow may be missed } } else { - if (Z_MODE(op1_addr) == IS_CONST_ZVAL && Z_LVAL_P(Z_ZV(op1_addr)) == 2) { + if (Z_LVAL_P(Z_ZV(op1_addr)) == 2) { if (Z_MODE(op2_addr) == IS_REG) { | adds Rx(result_reg), Rx(Z_REG(op2_addr)), Rx(Z_REG(op2_addr)) } else {

« previous php.cvs (#115724) next »