com php-src: Eliminate CHECK_VAR instructions for defin ed CVs: ext/opcache/Optimizer/dce.c

From: Date: Thu, 10 Oct 2019 13:07:31 +0000
Subject: com php-src: Eliminate CHECK_VAR instructions for defin ed CVs: ext/opcache/Optimizer/dce.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-108864@lists.php.net to get a copy of this message
Commit: 833821ac244230cd2283af5bc08c5766cfaf47be Author: Dmitry Stogov <dmitry@zend.com> Thu, 10 Oct 2019 16:07:31 +0300 Parents: 2118f6a898297c9705ac652ad38f79590f80885b Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=833821ac244230cd2283af5bc08c5766cfaf47be Log: Eliminate CHECK_VAR instructions for defined CVs Changed paths: M ext/opcache/Optimizer/dce.c Diff: diff --git a/ext/opcache/Optimizer/dce.c b/ext/opcache/Optimizer/dce.c index 8370bdc7792..2992bb60b37 100644 --- a/ext/opcache/Optimizer/dce..c +++ b/ext/opcache/Optimizer/dce.c @@ -241,6 +241,8 @@ static inline zend_bool may_have_side_effects( } } return 0; + case ZEND_CHECK_VAR: + return (OP1_INFO() & MAY_BE_UNDEF) != 0; default: /* For everything we didn't handle, assume a side-effect */ return 1;

« previous php.cvs (#108864) next »