com php-src: Range&type inference for JMP_SET: ext/opcach e/Optimizer/zend_inference.c

From: Date: Thu, 07 Jan 2016 17:53:02 +0000
Subject: com php-src: Range&type inference for JMP_SET: ext/opcach e/Optimizer/zend_inference.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-90575@lists.php.net to get a copy of this message
Commit: 04dc5d742091f991b7630a53df8d7ccd137d2797 Author: Nikita Popov <nikic@php.net> Sat, 2 Jan 2016 19:33:38 +0100 Parents: e712764dfe0e42af442259427e1229835ee5861e Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=04dc5d742091f991b7630a53df8d7ccd137d2797 Log: Range&type inference for JMP_SET Changed paths: M ext/opcache/Optimizer/zend_inference.c Diff: diff --git a/ext/opcache/Optimizer/zend_inference.c b/ext/opcache/Optimizer/zend_inference.c index 3206634..f87f6f5 100644 --- a/ext/opcache/Optimizer/zend_inference.c +++ b/ext/opcache/Optimizer/zend_inference.c @@ -1031,6 +1031,7 @@ int zend_inference_calc_range(const zend_op_array *op_array, zend_ssa *ssa, int } break; case ZEND_QM_ASSIGN: + case ZEND_JMP_SET: case ZEND_COALESCE: if (ssa->ops[line].result_def == var) { if (OP1_HAS_RANGE()) { @@ -2350,6 +2351,7 @@ static void zend_update_type_info(const zend_op_array *op_array, UPDATE_SSA_TYPE(tmp, ssa_ops[i].result_def); break; case ZEND_QM_ASSIGN: + case ZEND_JMP_SET: case ZEND_COALESCE: tmp = t1 & ~(MAY_BE_UNDEF|MAY_BE_REF); if (t1 & MAY_BE_UNDEF) { @@ -3422,10 +3424,6 @@ static void zend_update_type_info(const zend_op_array *op_array, // case ZEND_CATCH: // TODO: ??? // break; -// case ZEND_JMP_SET: -// case ZEND_COALESCE: -// TODO: ??? -// break; case ZEND_FETCH_DIM_R: case ZEND_FETCH_DIM_IS: case ZEND_FETCH_DIM_RW:

« previous php.cvs (#90575) next »