com php-src: Comments: ext/opcache/Optimizer/dce.c ext/opcache/Optimizer/sccp.c

From: Date: Wed, 06 Sep 2017 08:43:42 +0000
Subject: com php-src: Comments: ext/opcache/Optimizer/dce.c ext/opcache/Optimizer/sccp.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-99277@lists.php.net to get a copy of this message
Commit: 36ddda17f9950a518c15f065c5267243fd6ee2cb Author: Dmitry Stogov <dmitry@zend.com> Wed, 6 Sep 2017 11:43:42 +0300 Parents: dfe030097dd119c59ebba69c3ec692c2b6bbc13c Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=36ddda17f9950a518c15f065c5267243fd6ee2cb Log: Comments Changed paths: M ext/opcache/Optimizer/dce.c M ext/opcache/Optimizer/sccp.c Diff: diff --git a/ext/opcache/Optimizer/dce.c b/ext/opcache/Optimizer/dce.c index feaee92..b70ab56 100644 --- a/ext/opcache/Optimizer/dce.c +++ b/ext/opcache/Optimizer/dce.c @@ -13,6 +13,7 @@ | license@php.net so we can mail you a copy immediately. | +----------------------------------------------------------------------+ | Authors: Nikita Popov <nikic@php.net> | + | Dmitry Stogov <dmitry@zend.com> | +----------------------------------------------------------------------+ */ @@ -42,6 +43,8 @@ * zend_may_throw(). * * We often cannot DCE assignments and unsets while guaranteeing that dtors run in the same * order. There is an optimization option to allow reordering of dtor effects. + * * The algorithm is able to eliminate dead modifications of non-escaping arrays + * and objects as well as dead arrays and objects allocations. */ typedef struct { diff --git a/ext/opcache/Optimizer/sccp.c b/ext/opcache/Optimizer/sccp.c index 9c12fe9..abacc1b 100644 --- a/ext/opcache/Optimizer/sccp.c +++ b/ext/opcache/Optimizer/sccp..c @@ -13,6 +13,7 @@ | license@php.net so we can mail you a copy immediately. | +----------------------------------------------------------------------+ | Authors: Nikita Popov <nikic@php.net> | + | Dmitry Stogov <dmitry@zend.com> | +----------------------------------------------------------------------+ */ @@ -65,6 +66,12 @@ * b) Otherwise, if we branch on TOP none of the successors are feasible. * c) Otherwise (we branch on a constant), the feasible successors are marked based on the constant * (usually only one successor will be feasible). + * + * The original SCCP algorithm is extended with ability to propagate constant array + * elements and object properties. The extension is based on a variation of Array + * SSA form and its application to Spare Constant Propagation, described at + * "Array SSA Form" by Vivek Sarkar, Kathleen Knobe and Stephen Fink in chapter + * 16 of the SSA book. */ #if 0

« previous php.cvs (#99277) next »