1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

JIT: Remove old restriction. FETCH_DIM_R supports regs for indexes.

This affects only function JIT.
This commit is contained in:
Dmitry Stogov
2024-05-16 12:02:03 +03:00
parent 4ed1835f00
commit 5e7baaaad1

View File

@@ -16721,11 +16721,6 @@ static bool zend_jit_may_be_in_reg(const zend_op_array *op_array, zend_ssa *ssa,
!zend_jit_opline_supports_reg(op_array, ssa, op_array->opcodes + use, ssa->ops + use, NULL)) {
return 0;
}
/* Quick workaround to disable register allocation for unsupported operand */
// TODO: Find a general solution ???
if (op_array->opcodes[use].opcode == ZEND_FETCH_DIM_R) {
return 0;
}
use = zend_ssa_next_use(ssa->ops, var, use);
} while (use >= 0);
}