Skip to content

Commit 238e189

Browse files
committed
Merge branch 'master' into jit-dynasm
* master: Optimizer support for ZEND_IN_ARRAY
2 parents 47ce0d0 + 89b3c9f commit 238e189

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

ext/opcache/Optimizer/block_pass.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -532,6 +532,7 @@ static void zend_optimize_block(zend_basic_block *block, zend_op_array *op_array
532532
case ZEND_INSTANCEOF:
533533
case ZEND_TYPE_CHECK:
534534
case ZEND_DEFINED:
535+
case ZEND_IN_ARRAY:
535536
if (opline->opcode == ZEND_BOOL_NOT) {
536537
break;
537538
}

ext/opcache/Optimizer/zend_inference.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2185,6 +2185,7 @@ static void zend_update_type_info(const zend_op_array *op_array,
21852185
case ZEND_ISSET_ISEMPTY_PROP_OBJ:
21862186
case ZEND_ISSET_ISEMPTY_STATIC_PROP:
21872187
case ZEND_ASSERT_CHECK:
2188+
case ZEND_IN_ARRAY:
21882189
UPDATE_SSA_TYPE(MAY_BE_FALSE|MAY_BE_TRUE, ssa_ops[i].result_def);
21892190
break;
21902191
case ZEND_CAST:

0 commit comments

Comments
 (0)