Revision tags: php-7.0.8RC1, php-7.1.0alpha1 |
|
#
b111da96 |
| 31-May-2016 |
Dmitry Stogov |
Split ZEND_SEND_VAR_NO_REF into ZEND_SEND_VAR_NO_REF and ZEND_SEND_VAR_NO_REF_EX (similar to ZEND_SEND_VAL) and remove ZEND_ARG_* flags.
|
#
da511f25 |
| 27-May-2016 |
Xinchen Hui |
Typo & cleanup
|
Revision tags: php-5.6.22, php-5.5.36, php-7.0.7 |
|
#
e745b4ca |
| 18-May-2016 |
Nikita Popov |
Replace BB end with BB len And support empty blocks everywhere.
|
#
b5bdb40c |
| 12-May-2016 |
Nikita Popov |
Fix phi placement for pi targets If the pi target has multiple predecessors, we need to place a phi there. However it's not possible to express this in terms of dominance frontiers,
Fix phi placement for pi targets If the pi target has multiple predecessors, we need to place a phi there. However it's not possible to express this in terms of dominance frontiers, so we need to explicitly add it to the phi set. This does not yet solve the problem of non-minimal SSA for the case where the target has multiple predecessors, but dominates all predecessors (apart from the one creating the pi) -- but that's an existing issue.
show more ...
|
#
b1c3c9a5 |
| 12-May-2016 |
Nikita Popov |
Explicitly construct phi set during def propagation Previously the phi set was first computed during def propagation and then computed again (per-block) during actual phi placement.
Explicitly construct phi set during def propagation Previously the phi set was first computed during def propagation and then computed again (per-block) during actual phi placement. This commit changes this to store the phi set computed during def propagation. This makes SSA construction slightly faster (5%), but the main purpose here is to pave the way for the next commit. This also fixes a potential issue with the handling of irreducible loops -- they generated additional phis, but these were not accounted for in def propagation. (Though I'm not sure if we can even have any irreducible loops right now.)
show more ...
|
Revision tags: php-5.6.22RC1, php-7.0.7RC1, php-7.0.6, php-5.6.21, php-5.5.35, php-5.6.21RC1, php-7.0.6RC1, php-5.6.20, php-5.5.34, php-7.0.5, php-5.6.20RC1, php-7.0.5RC1, php-5.6.19, php-5.5.33, php-7.0.4, php-5.6.19RC1, php-7.0.4RC1, php-5.6.18 |
|
#
434e0fb3 |
| 02-Feb-2016 |
Nikita Popov |
Take pi defs into account when propagating defs Previously pi placement happened after initial phi placement. Afterwards a second phi placement pass was performed, however it incorre
Take pi defs into account when propagating defs Previously pi placement happened after initial phi placement. Afterwards a second phi placement pass was performed, however it incorrectly only placed phis on the dominance frontier, rather than the iterated dominance frontier. This is fixed by moving pi placement before the propagation of defs on the iterated DFs, and adding a def for each added pi. While this ensures that we generate correct conservative SSA, there is still one remaining case in which we may generate non-minimal SSA form. Consider: |1| |pi v |2|<--\ | | \----/ The pi is semanically located along the edge 1->2, however we place it (and its def point) in 2, thus leading to the generation of an additional (trivial) phi in 2. Conflicts: ext/opcache/Optimizer/zend_ssa.c
show more ...
|
#
721be3e0 |
| 02-Feb-2016 |
Nikita Popov |
Make pi placement independent of phi placement This interdependence is problematic because we can't propagate pi def points in the initial dominance frontier propagation. The used ru
Make pi placement independent of phi placement This interdependence is problematic because we can't propagate pi def points in the initial dominance frontier propagation. The used rule for multiple-predecessor blocks may also miss cases where placing the pi would have been useful. The new heuristic for pi placement checks that a) the variable is live-in and b) for the "from" block that generated the pi, the other successor does not dominate all other predecessors of the "to" block. The purpose of case b) may be illustrated with an example: if (is_int($i)) { // place pi here } // but don't place pi here The reason we do not want to place the second pi is that we generally place pis in positive+negative pairs, and in this case the pair would merge in a phi and cancel out, so we get no useful information out of it.
show more ...
|
#
65faf0a5 |
| 24-Apr-2016 |
Nikita Popov |
Drop some unnecessary checks
|
#
cafe78d1 |
| 24-Apr-2016 |
Nikita Popov |
Introduce ZEND_BITSET_FOREACH macros
|
#
304e5ae3 |
| 21-Apr-2016 |
Nikita Popov |
Adjust DFG allocation size Now we need one set less...
|
#
a5944f8d |
| 21-Apr-2016 |
Nikita Popov |
Merge def and gen sets For live-variable analysis it does not matter if def includes variables that are previously use in the same block, the data flow equations still have the same
Merge def and gen sets For live-variable analysis it does not matter if def includes variables that are previously use in the same block, the data flow equations still have the same result. As such there is no need to compute separate gen & def sets. I'm keeping the name "def", because use of "gen" in this context is pretty confusing (gen is usually the use set, not the def set).
show more ...
|
#
4f726be6 |
| 16-Apr-2016 |
Nikita Popov |
Fix SSA for SEND_UNPACK
|
#
aed42496 |
| 07-Apr-2016 |
Dmitry Stogov |
Fixed handling of return statement without a value.
|
#
89214497 |
| 07-Apr-2016 |
Dmitry Stogov |
Added missing "break"
|
#
3444c1ae |
| 07-Apr-2016 |
Dmitry Stogov |
Use return type hints for type inference and eliminate useless VERIFY_RETRUN_TYPE opcodes.
|
#
fc49f1c4 |
| 17-Mar-2016 |
Kalle Sommer Nielsen |
Fix build
|
#
8c2d5596 |
| 11-Feb-2016 |
Dmitry Stogov |
Combine conditions
|
#
4095d5f2 |
| 09-Feb-2016 |
Dmitry Stogov |
Cleanup OP_DATA usage. Now only first operand of OP_DATA is used for ASSIGN_DIM, ASSIGN_OBJ and ASSIGN_OP (DIM/OBJ) instructions.
|
#
80c15ac7 |
| 02-Feb-2016 |
Nikita Popov |
Move pi placement into separate function Non-functional change, just moving code. This makes it easier to change the order of operations.
|
Revision tags: php-7.0.3, php-5.5.32 |
|
#
c2fea2a4 |
| 23-Jan-2016 |
Nikita Popov |
Respect RC_INFERENCE during DFG construction To avoid inserting phis that are only relevant with rc inference enabled. Suprisingly, this affects only 0.8% of phis.
|
#
cf6aa46d |
| 22-Jan-2016 |
Nikita Popov |
Fix SSA for ZEND_YIELD Yield-by-ref defs a ref var, yield-by-var only defs an rc1/rcn var if rc inference is used. Also move BIND_LEXICAL where it belongs in DFG construction.
|
Revision tags: php-5.6.18RC1, php-7.0.3RC1 |
|
#
5662d735 |
| 09-Jan-2016 |
Nikita Popov |
Add support for Pi type constraints Supports TYPE_CHECK and IS_IDENTICAL for now.
|
#
6579e484 |
| 12-Jan-2016 |
Dmitry Stogov |
Introduced BIND_STATIC opcode instead of FETCH_R/FETCH_W(static)+ASSIGN/ASSIGN_REF (similar to BIND_GLOBAL). In the future we may refer to static variable by index instead of name, to eliminate h
Introduced BIND_STATIC opcode instead of FETCH_R/FETCH_W(static)+ASSIGN/ASSIGN_REF (similar to BIND_GLOBAL). In the future we may refer to static variable by index instead of name, to eliminate hash lookup.
show more ...
|
#
0e936db8 |
| 09-Jan-2016 |
Nikita Popov |
Make PI construction human-readable Also makes it easy to add PIs for TI.
|
Revision tags: php-5.6.17, php-5.5.31, php-7.0.2 |
|
#
71c19800 |
| 01-Jan-2016 |
Lior Kaplan |
Happy new year (Update copyright to 2016)
|