com php-src: Fixed register allocation: ext/opcache/jit/zend_ jit_x86.dasc
| From: | Dmitry Stogov | Date: | Wed, 27 Nov 2019 13:26:43 +0000 |
| Subject: | com php-src: Fixed register allocation: ext/opcache/jit/zend_ jit_x86.dasc | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-109329@lists.php.net to get a copy of this message | ||
Commit: 40ef3196e0b2427fab1abe5575b057d560411b86
Author: Dmitry Stogov <dmitry@zend.com> Wed, 27 Nov 2019 16:26:43 +0300
Parents: b7edbbdbbb11f4ddf1d87468b04b9d0fb0212791
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=40ef3196e0b2427fab1abe5575b057d560411b86
Log:
Fixed register allocation
Changed paths:
M ext/opcache/jit/zend_jit_x86.dasc
Diff:
diff --git a/ext/opcache/jit/zend_jit_x86.dasc b/ext/opcache/jit/zend_jit_x86.dasc
index 860b8829170..b319b29f187 100644
--- a/ext/opcache/jit/zend_jit_x86.dasc
+++ b/ext/opcache/jit/zend_jit_x86.dasc
@@ -6835,6 +6835,14 @@ static int zend_jit_assign(dasm_State **Dst, const zend_op *opline, const
zend_o
if (!zend_jit_assign_to_variable(Dst, opline, op_array, ssa, op1_addr, op1_info, op1_def_info,
opline->op2_type, opline->op2, op2_addr, op2_info, res_addr)) {
return 0;
}
+ if (ra && !zend_jit_store_ssa_var_if_necessary(Dst, ssa, ra, op1_addr, ssa->ops[opline
- op_array->opcodes].op1_def, ssa->ops[opline - op_array->opcodes].op1_use)) {
+ return 0;
+ }
+ if (opline->result_type != IS_UNUSED) {
+ if (ra && !zend_jit_store_ssa_var_if_necessary(Dst, ssa, ra, res_addr, ssa->ops[opline
- op_array->opcodes].result_def, ssa->ops[opline - op_array->opcodes].result_use)) {
+ return 0;
+ }
+ }
if (zend_may_throw(opline, op_array, ssa)) {
zend_jit_check_exception(Dst);