]> granicus.if.org Git - php/commit
Merge def and gen sets
authorNikita Popov <nikic@php.net>
Thu, 21 Apr 2016 21:12:28 +0000 (23:12 +0200)
committerNikita Popov <nikic@php.net>
Thu, 21 Apr 2016 21:32:01 +0000 (23:32 +0200)
commita5944f8dd5c45a95bb0cfdea52dd2301fab1f39c
tree2a86772b9dd3f4bf74c1f24efbf3f59c4b2cf3a8
parent261eb5cc891735706d6c4c2f6fd43b1604751e39
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).
ext/opcache/Optimizer/zend_dfg.c
ext/opcache/Optimizer/zend_dfg.h
ext/opcache/Optimizer/zend_dump.c
ext/opcache/Optimizer/zend_ssa.c