diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2020-03-09 16:17:02 +0100 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-03-09 16:19:48 +0100 |
commit | d9c45d86f9cd3d20f66ebf38384a9f53113415e5 (patch) | |
tree | e60a71570f7bcb8de61f5e33d0bb705874ad0448 /ext/opcache/tests/preload_008.phpt | |
parent | b2f7be721465fee1cdfd7d03f4a8234a931e6056 (diff) | |
download | php-git-d9c45d86f9cd3d20f66ebf38384a9f53113415e5.tar.gz |
Improve type inference for COALESCE
Place a pi node on the non-null edge to remove a spurious
undef/null type.
Additionally, adjust the profitability heuristic to be more
accurate if the "other predecessor" writes to the variable.
Ideally this should not just consider the direct predecessors,
but it's sufficient for this case.
This partially addresses bug #79353 by removing the discrepancy
between ?? and ??=.
Diffstat (limited to 'ext/opcache/tests/preload_008.phpt')
0 files changed, 0 insertions, 0 deletions