Re: com php-src: Convert ASSIGN_ADD $a, $b into $a = ADD $a, $b, if possible.: ext/opcache/Optimizer/dfa_pass.c
| From: | Matt Wilmas | Date: | Wed, 23 Mar 2016 04:38:40 +0000 |
| Subject: | Re: com php-src: Convert ASSIGN_ADD $a, $b into $a = ADD $a, $b, if possible.: ext/opcache/Optimizer/dfa_pass.c | ||
| References: | 1 | Groups: | php.cvs php.internals |
| Request: | Send a blank email to internals+get-91876@lists.php.net to get a copy of this message | ||
Hi Dmitry,
----- Original Message -----
From: "Dmitry Stogov"
Sent: Tuesday, March 22, 2016
So this changes $a += $b into $a = $a + $b? What is the purpose of that...? I always use the former, because I thought the latter created a temp value for $a + $b prior to assignment... (Maybe I'm wrong or it's different now? :-/) Otherwise, is the idea to "deaden" the ASSIGN_* handlers and consolidate stuff to a common handler, thus improving CPU instruction cache usage? Thanks, MattCommit: d8b75b0807a5d94bd7b6b175d56aba8bc5be8d7a Author: Dmitry Stogov <dmitry@zend.com> Tue, 22 Mar 2016 23:57:26 +0300Parents: 76d612129bb6b67171308f43c19d7e4791d7919e Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=d8b75b0807a5d94bd7b6b175d56aba8bc5be8d7a Log: Convert ASSIGN_ADD $a, $b into $a = ADD $a, $b, if possible. Changed paths: M ext/opcache/Optimizer/dfa_pass.c