Skip to content

Commit c6cfd72

Browse files
committed
cleanup
1 parent afca741 commit c6cfd72

File tree

1 file changed

+5
-17
lines changed

1 file changed

+5
-17
lines changed

ext/opcache/jit/zend_jit_ir.c

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -9674,7 +9674,7 @@ static int zend_jit_do_fcall(zend_jit_ctx *jit, const zend_op *opline, const zen
96749674
&& trace->stop == ZEND_JIT_TRACE_STOP_INTERPRETER)) {
96759675
ir_ref ip;
96769676

9677-
if (func && zend_accel_in_shm(func->op_array.opcodes)) {
9677+
if (zend_accel_in_shm(func->op_array.opcodes)) {
96789678
ip = ir_CONST_ADDR(func->op_array.opcodes);
96799679
} else {
96809680
if (!func_ref) {
@@ -11605,11 +11605,7 @@ static int zend_jit_fetch_dimension_address_inner(zend_jit_ctx *jit,
1160511605
case BP_VAR_W:
1160611606
if (packed_loaded) {
1160711607
ir_ref if_def = ir_IF(jit_Z_TYPE_ref(jit, ref));
11608-
if (!(op1_info & MAY_BE_ARRAY_KEY_LONG) || (op1_info & MAY_BE_ARRAY_NUMERIC_HASH) || packed_loaded || bad_packed_key || dim_type == IS_UNDEF) {
11609-
ir_IF_TRUE_cold(if_def);
11610-
} else {
11611-
ir_IF_TRUE(if_def);
11612-
}
11608+
ir_IF_TRUE_cold(if_def);
1161311609
ir_refs_add(found_inputs, ir_END());
1161411610
ir_refs_add(found_vals, ref);
1161511611
ir_IF_FALSE(if_def);
@@ -13699,19 +13695,15 @@ static int zend_jit_fetch_obj(zend_jit_ctx *jit,
1369913695

1370013696
if (flags == ZEND_FETCH_DIM_WRITE) {
1370113697
ir_IF_FALSE_cold(if_readonly);
13702-
if (flags) {
13703-
ir_MERGE_WITH(reinit_path);
13704-
}
13698+
ir_MERGE_WITH(reinit_path);
1370513699
jit_SET_EX_OPLINE(jit, opline);
1370613700
ir_CALL_2(IR_VOID, ir_CONST_FC_FUNC(zend_jit_check_array_promotion),
1370713701
prop_ref, prop_info_ref);
1370813702
ir_END_list(end_inputs);
1370913703
ir_IF_FALSE(if_has_prop_info);
1371013704
} else if (flags == ZEND_FETCH_REF) {
1371113705
ir_IF_FALSE_cold(if_readonly);
13712-
if (flags) {
13713-
ir_MERGE_WITH(reinit_path);
13714-
}
13706+
ir_MERGE_WITH(reinit_path);
1371513707
ir_CALL_3(IR_VOID, ir_CONST_FC_FUNC(zend_jit_create_typed_ref),
1371613708
prop_ref,
1371713709
prop_info_ref,
@@ -14539,11 +14531,7 @@ static int zend_jit_assign_obj_op(zend_jit_ctx *jit,
1453914531
case ZEND_MOD:
1454014532
if ((var_info & (MAY_BE_STRING|MAY_BE_ARRAY|MAY_BE_OBJECT|MAY_BE_RESOURCE)) ||
1454114533
(val_info & (MAY_BE_STRING|MAY_BE_ARRAY|MAY_BE_OBJECT|MAY_BE_RESOURCE))) {
14542-
if (opline->extended_value != ZEND_ADD ||
14543-
(var_info & MAY_BE_ANY) != MAY_BE_ARRAY ||
14544-
(val_info & MAY_BE_ANY) == MAY_BE_ARRAY) {
14545-
may_throw = 1;
14546-
}
14534+
may_throw = 1;
1454714535
}
1454814536
if (val_op_type != IS_CONST ||
1454914537
Z_TYPE_P(RT_CONSTANT((opline+1), (opline+1)->op1)) != IS_LONG ||

0 commit comments

Comments
 (0)