Skip to content

Commit 333a28e

Browse files
committed
Register allocation is useless if JIT just calls standarad VM handlers
1 parent 292085f commit 333a28e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/opcache/jit/zend_jit_trace.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2332,7 +2332,7 @@ static const void *zend_jit_trace(zend_jit_trace_rec *trace_buffer, uint32_t par
23322332
ssa = zend_jit_trace_build_tssa(trace_buffer, parent_trace, exit_num, script, op_arrays, &num_op_arrays);
23332333

23342334
/* Register allocation */
2335-
if (zend_jit_reg_alloc) {
2335+
if (zend_jit_reg_alloc && zend_jit_level >= ZEND_JIT_LEVEL_INLINE) {
23362336
ra = zend_jit_trace_allocate_registers(trace_buffer, ssa);
23372337
}
23382338

0 commit comments

Comments
 (0)