diff options
author | Nikita Popov <nikic@php.net> | 2016-02-27 18:51:53 +0100 |
---|---|---|
committer | Nikita Popov <nikic@php.net> | 2016-02-28 21:38:34 +0100 |
commit | a1c48d5e3a1e8ffbb75bdf51ae07c6596574282d (patch) | |
tree | 63fc1d54b154213295d82e7230177213d5dd01d6 /ext/opcache/Optimizer/zend_ssa.h | |
parent | ff1f178d84e41b368102eb25cc96c6705f1c37b9 (diff) | |
download | php-git-a1c48d5e3a1e8ffbb75bdf51ae07c6596574282d.tar.gz |
Various SSA-related tweaks
* Add FETCH_LIST to inference
* Restrict JMP_SET/COALESCE result type
* Fix typos in range inference
* Add const annotations in zend_ssa.h
* For pi statements dump the associated predecessor block
* If type can be both true and false, dump bool instead
Diffstat (limited to 'ext/opcache/Optimizer/zend_ssa.h')
-rw-r--r-- | ext/opcache/Optimizer/zend_ssa.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/opcache/Optimizer/zend_ssa.h b/ext/opcache/Optimizer/zend_ssa.h index 00d6875dfd..dbf260c4d8 100644 --- a/ext/opcache/Optimizer/zend_ssa.h +++ b/ext/opcache/Optimizer/zend_ssa.h @@ -122,7 +122,7 @@ int zend_ssa_unlink_use_chain(zend_ssa *ssa, int op, int var); END_EXTERN_C() -static zend_always_inline int zend_ssa_next_use(zend_ssa_op *ssa_op, int var, int use) +static zend_always_inline int zend_ssa_next_use(const zend_ssa_op *ssa_op, int var, int use) { ssa_op += use; if (ssa_op->result_use == var) { @@ -131,7 +131,7 @@ static zend_always_inline int zend_ssa_next_use(zend_ssa_op *ssa_op, int var, in return (ssa_op->op1_use == var) ? ssa_op->op1_use_chain : ssa_op->op2_use_chain; } -static zend_always_inline zend_ssa_phi* zend_ssa_next_use_phi(zend_ssa *ssa, int var, zend_ssa_phi *p) +static zend_always_inline zend_ssa_phi* zend_ssa_next_use_phi(const zend_ssa *ssa, int var, const zend_ssa_phi *p) { if (p->pi >= 0) { return p->use_chains[0]; |