Skip to content

Commit 5e7baaa

Browse files
committed
JIT: Remove old restriction. FETCH_DIM_R supports regs for indexes.
This affects only function JIT.
1 parent 4ed1835 commit 5e7baaa

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

ext/opcache/jit/zend_jit_ir.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16721,11 +16721,6 @@ static bool zend_jit_may_be_in_reg(const zend_op_array *op_array, zend_ssa *ssa,
1672116721
!zend_jit_opline_supports_reg(op_array, ssa, op_array->opcodes + use, ssa->ops + use, NULL)) {
1672216722
return 0;
1672316723
}
16724-
/* Quick workaround to disable register allocation for unsupported operand */
16725-
// TODO: Find a general solution ???
16726-
if (op_array->opcodes[use].opcode == ZEND_FETCH_DIM_R) {
16727-
return 0;
16728-
}
1672916724
use = zend_ssa_next_use(ssa->ops, var, use);
1673016725
} while (use >= 0);
1673116726
}

0 commit comments

Comments
 (0)