[php-src] jit-arm64: Disable unsuitable optimization
| From: | Dmitry Stogov | Date: | Fri, 23 Apr 2021 13:35:01 +0000 |
| Subject: | [php-src] jit-arm64: Disable unsuitable optimization | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-115787@lists.php.net to get a copy of this message | ||
Author: Dmitry Stogov (dstogov)
Date: 2021-04-23T16:34:36+03:00
Commit: https://github.com/php/php-src/commit/06fb68cf5c96cf5a28c4bd5c9fdd84c6b619e096
Raw diff: https://github.com/php/php-src/commit/06fb68cf5c96cf5a28c4bd5c9fdd84c6b619e096.diff
Disable unsuitable optimization
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 89985b469f03..c5f45c9706fc 100644
--- a/ext/opcache/jit/zend_jit_arm64.dasc
+++ b/ext/opcache/jit/zend_jit_arm64.dasc
@@ -5068,6 +5068,8 @@ static int zend_jit_assign_to_variable(dasm_State **Dst,
bool keep_gc = 0;
| GET_ZVAL_PTR Rx(tmp_reg), var_use_addr, TMP1
+#if 0
+ // TODO: This optiization doesn't work on ARM
if (tmp_reg == ZREG_FCARG1x) {
if (Z_MODE(val_addr) == IS_REG) {
keep_gc = 1;
@@ -5088,6 +5090,7 @@ static int zend_jit_assign_to_variable(dasm_State **Dst,
}
}
}
+#endif
if (!keep_gc) {
| str Rx(tmp_reg), T1 // save
}