mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +02:00
Eliminate useless spill stores (#19467)
This commit is contained in:
parent
60047025db
commit
290c9aef56
1 changed files with 5 additions and 0 deletions
|
@ -4177,6 +4177,11 @@ static int zend_jit_spill_store_inv(zend_jit_ctx *jit, zend_jit_addr src, zend_j
|
|||
ZEND_ASSERT(Z_MODE(src) == IS_REG);
|
||||
ZEND_ASSERT(Z_MODE(dst) == IS_MEM_ZVAL);
|
||||
|
||||
if (Z_LOAD(src) || Z_STORE(src)) {
|
||||
/* it's not necessary to store register if it was previously loaded or already stored */
|
||||
return 1;
|
||||
}
|
||||
|
||||
if ((info & MAY_BE_ANY) == MAY_BE_LONG) {
|
||||
jit_set_Z_LVAL(jit, dst, zend_jit_use_reg(jit, src));
|
||||
if (Z_REG(dst) != ZREG_FP || !JIT_G(current_frame)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue