Skip to content

Commit 05a898e

Browse files
committed
Improve register allocation
1 parent d065cd8 commit 05a898e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/opcache/jit/zend_jit_ir.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17371,7 +17371,7 @@ static bool zend_jit_opline_supports_reg(const zend_op_array *op_array, zend_ssa
1737117371
op1_ffi_type = zend_jit_ffi_type_pointer_to(op1_ffi_type, &holder);
1737217372
}
1737317373
if ((op1_ffi_type->kind == ZEND_FFI_TYPE_ARRAY || op1_ffi_type->kind == ZEND_FFI_TYPE_POINTER)
17374-
&& op2_info == MAY_BE_LONG
17374+
&& (op2_info & (MAY_BE_ANY|MAY_BE_UNDEF)) == MAY_BE_LONG
1737517375
&& ZEND_FFI_TYPE(op1_ffi_type->array.type)->kind < ZEND_FFI_TYPE_POINTER
1737617376
&& ZEND_FFI_TYPE(op1_ffi_type->array.type)->kind != ZEND_FFI_TYPE_VOID
1737717377
&& zend_jit_ffi_supported_type(ZEND_FFI_TYPE(op1_ffi_type->array.type))) {
@@ -17448,7 +17448,7 @@ static bool zend_jit_opline_supports_reg(const zend_op_array *op_array, zend_ssa
1744817448
op1_ffi_type = zend_jit_ffi_type_pointer_to(op1_ffi_type, &holder);
1744917449
}
1745017450
if ((op1_ffi_type->kind == ZEND_FFI_TYPE_ARRAY || op1_ffi_type->kind == ZEND_FFI_TYPE_POINTER)
17451-
&& op2_info == MAY_BE_LONG
17451+
&& (op2_info & (MAY_BE_ANY|MAY_BE_UNDEF)) == MAY_BE_LONG
1745217452
&& zend_jit_ffi_compatible(op1_ffi_type->array.type, op1_data_info, op3_ffi_type)) {
1745317453
return 1;
1745417454
}

0 commit comments

Comments
 (0)