Home
last modified time | relevance | path

Searched refs:ssa (Results 1 – 23 of 23) sorted by relevance

/PHP-8.0/ext/opcache/Optimizer/
H A Ddfa_pass.c178 ssa->ops[target] = ssa->ops[i]; in zend_ssa_remove_nops()
217 ssa->vars[j].definition -= shiftlist[ssa->vars[j].definition]; in zend_ssa_remove_nops()
220 ssa->vars[j].use_chain -= shiftlist[ssa->vars[j].use_chain]; in zend_ssa_remove_nops()
365 && zend_may_throw(opline, &ssa->ops[ssa->vars[src_var].definition], op_array, ssa)) { in opline_supports_assign_contraction()
1253 ssa->ops[op_1].op1_use = ssa->ops[op_1].op2_use; in zend_dfa_optimize_op_array()
1424 ssa->ops[op_2].op1_use = ssa->ops[op_2].op2_use; in zend_dfa_optimize_op_array()
1578 ssa->ops[op_2].op1_use = ssa->ops[op_2].op2_use; in zend_dfa_optimize_op_array()
1592 if (ssa->ops[op_1].op1_use != ssa->ops[op_1].op2_use) { in zend_dfa_optimize_op_array()
1601 ssa->ops[op_1].op1_use = ssa->ops[op_1].op2_use; in zend_dfa_optimize_op_array()
1657 ssa->ops[op_1].result_def = ssa->ops[op_1].op1_def; in zend_dfa_optimize_op_array()
[all …]
H A Dzend_inference.h50 ssa->var_info && \
52 ssa->var_info[ssa_op->opN##_use].has_range); \
72 ssa->var_info && \
74 ssa->var_info[ssa_op->opN##_use].has_range) { \
95 ssa->var_info && \
112 ssa->var_info && \
129 ssa->var_info && \
200 if (ssa->var_info && ssa_var_num >= 0) { in get_ssa_var_info()
201 return ssa->var_info[ssa_var_num].type; in get_ssa_var_info()
213 return get_ssa_var_info(ssa, ssa->var_info ? ssa_op->opN##_use : -1); \
[all …]
H A Ddce.c51 zend_ssa *ssa; member
305 zend_ssa *ssa = ctx->ssa; in add_phi_sources_to_worklists() local
385 zend_ssa *ssa = ctx->ssa; in dce_instr() local
434 ssa->vars[free_var].use_chain = ssa_op - ssa->ops; in dce_instr()
461 zend_ssa *ssa = ctx->ssa; in try_remove_trivial_phi() local
509 ctx.ssa = ssa; in dce_optimize_op_array()
561 add_operands_to_worklists(&ctx, &op_array->opcodes[i], &ssa->ops[i], ssa, 0); in dce_optimize_op_array()
566 || (zend_may_throw(&op_array->opcodes[i], &ssa->ops[i], op_array, ssa) in dce_optimize_op_array()
568 || (has_varargs && may_break_varargs(op_array, ssa, &ssa->ops[i]))) { in dce_optimize_op_array()
576 add_operands_to_worklists(&ctx, &op_array->opcodes[i], &ssa->ops[i], ssa, 0); in dce_optimize_op_array()
[all …]
H A Dzend_ssa.h177 zend_ssa_var *var = &ssa->vars[ssa_op->op1_def]; in zend_ssa_remove_op1_def()
184 zend_ssa_var *var = &ssa->vars[ssa_op->op2_def]; in zend_ssa_remove_op2_def()
243 ssa->vars[ssa_op->op1_def].definition = -1; in zend_ssa_rename_defs_of_instr()
250 ssa->vars[ssa_op->op2_def].definition = -1; in zend_ssa_rename_defs_of_instr()
257 ssa->vars[ssa_op->result_def].definition = -1; in zend_ssa_rename_defs_of_instr()
268 int _var_num = (var) - ssa->vars, next; \
276 int _var_num = (var) - ssa->vars; \
296 for (_i = 0; _i < ssa->cfg.blocks_count; _i++) { \
297 phi = ssa->blocks[_i].phis; \
306 for (_i = 0; _i < ssa->cfg.blocks_count; _i++) { \
[all …]
H A Dzend_ssa.c1067 if (!ssa->vars) { in zend_ssa_compute_use_def_chains()
1185 ssa->vars[var].use_chain = zend_ssa_next_use(ssa->ops, var, op); in zend_ssa_unlink_use_chain()
1193 ssa->ops[use].res_use_chain = zend_ssa_next_use(ssa->ops, var, op); in zend_ssa_unlink_use_chain()
1200 ssa->ops[use].op1_use_chain = zend_ssa_next_use(ssa->ops, var, op); in zend_ssa_unlink_use_chain()
1232 zend_ssa_unlink_use_chain(ssa, ssa_op - ssa->ops, ssa_op->op1_use); in zend_ssa_remove_instr()
1240 zend_ssa_unlink_use_chain(ssa, ssa_op - ssa->ops, ssa_op->op2_use); in zend_ssa_remove_instr()
1465 zend_ssa_remove_defs_of_instr(ssa, &ssa->ops[j]); in zend_ssa_remove_block()
1466 zend_ssa_remove_instr(ssa, &op_array->opcodes[j], &ssa->ops[j]); in zend_ssa_remove_block()
1520 if (ssa->var_info[var].type & ~ssa->var_info[phi->ssa_var].type) { in propagate_phi_type_widening()
1521 ssa->var_info[phi->ssa_var].type |= ssa->var_info[var].type; in propagate_phi_type_widening()
[all …]
H A Dscdf.c85 scdf->ssa = ssa; in scdf_init()
105 zend_ssa *ssa = scdf->ssa; in scdf_solve() local
121 int block_num = ssa->cfg.map[i]; in scdf_solve()
125 zend_ssa_op *ssa_op = &ssa->ops[i]; in scdf_solve()
143 zend_basic_block *block = &ssa->cfg.blocks[i]; in scdf_solve()
144 zend_ssa_block *ssa_block = &ssa->blocks[i]; in scdf_solve()
191 const zend_cfg *cfg = &scdf->ssa->cfg; in kept_alive_by_loop_var_free()
199 int ssa_var = scdf->ssa->ops[i].op1_use; in kept_alive_by_loop_var_free()
218 zend_ssa *ssa = scdf->ssa; in scdf_remove_unreachable_blocks() local
221 for (i = 0; i < ssa->cfg.blocks_count; i++) { in scdf_remove_unreachable_blocks()
[all …]
H A Dssa_integrity.c27 FOREACH_USE(&ssa->vars[var], use) { in is_in_use_chain()
37 FOREACH_PHI_USE(&ssa->vars[var], phi) { in is_in_phi_use_chain()
46 zend_ssa_op *ssa_op = &ssa->ops[op]; in is_used_by_op()
53 zend_ssa_op *ssa_op = &ssa->ops[op]; in is_defined_by_op()
106 (ssa->vars[i].var < op_array->last_var ? ZSTR_VAL(op_array->vars[ssa->vars[i].var]) : "")
113 zend_cfg *cfg = &ssa->cfg; in ssa_verify_integrity()
119 zend_ssa_var *var = &ssa->vars[i]; in ssa_verify_integrity()
152 if (!is_used_by_op(ssa, use, i)) { in ssa_verify_integrity()
178 zend_ssa_op *ssa_op = &ssa->ops[i]; in ssa_verify_integrity()
299 if (ssa->vars[source].var != ssa->vars[phi->ssa_var].var) { in ssa_verify_integrity()
[all …]
H A Dzend_inference.c90 if (ssa->vars[var2].scc != ssa->vars[var].scc) { \
194 ssa->vars[var].scc = ssa->sccs; in zend_ssa_check_scc_var()
201 ssa->vars[var2].scc = ssa->sccs; in zend_ssa_check_scc_var()
203 ssa->sccs++; in zend_ssa_check_scc_var()
234 ssa->vars[j].scc = ssa->sccs - (ssa->vars[j].scc + 1); in zend_ssa_find_sccs()
266 if (!op_array->function_name || !ssa->vars || !ssa->ops) { in zend_ssa_find_false_dependencies()
1450 if (ssa->vars[var2].scc == ssa->vars[var].scc && \
1766 op = ssa->ops + use; in add_usages()
2200 zend_ssa_op *use_op = &ssa->ops[ssa->vars[tmp_var].use_chain]; in result_may_be_separated()
3913 if (info->ssa.ops && info->ssa.vars && info->call_map && in is_recursive_tail_call()
[all …]
H A Dscdf.h26 zend_ssa *ssa; member
49 void scdf_init(zend_optimizer_ctx *ctx, scdf_ctx *scdf, zend_op_array *op_array, zend_ssa *ssa);
56 zend_ssa *ssa = scdf->ssa; in scdf_add_to_worklist() local
57 zend_ssa_var *var = &ssa->vars[var_num]; in scdf_add_to_worklist()
70 zend_ssa_var *var = &scdf->ssa->vars[var_num]; in scdf_add_def_to_worklist()
93 uint32_t edge = scdf_edge(&scdf->ssa->cfg, from, to); in scdf_is_edge_feasible()
H A Descape_analysis.c79 zend_ssa_var *ssa_vars = ssa->vars; in zend_build_equi_escape_sets()
80 int ssa_vars_count = ssa->vars_count; in zend_build_equi_escape_sets()
104 zend_ssa_op *op = ssa->ops + def; in zend_build_equi_escape_sets()
169 zend_ssa_op *ssa_op = ssa->ops + def; in is_allocation_def()
233 zend_ssa_op *op = ssa->ops + def; in is_local_def()
276 zend_ssa_op *ssa_op = ssa->ops + use; in is_escape_use()
387 zend_ssa_var *ssa_vars = ssa->vars; in zend_ssa_escape_analysis()
388 int ssa_vars_count = ssa->vars_count; in zend_ssa_escape_analysis()
402 && (ssa->var_info[i].type & (MAY_BE_ARRAY|MAY_BE_OBJECT)) in zend_ssa_escape_analysis()
456 if (is_escape_use(op_array, ssa, use, i)) { in zend_ssa_escape_analysis()
[all …]
H A Dzend_dump.c351 if (ssa->var_info) { in zend_dump_ssa_var()
720 const zend_ssa *ssa = NULL; in zend_dump_op_line() local
727 ssa = (const zend_ssa*)data; in zend_dump_op_line()
728 if (ssa && ssa->ops) { in zend_dump_op_line()
838 if (ssa && ssa->blocks && ssa->blocks[n].phis) { in zend_dump_block_header()
888 const zend_ssa *ssa = NULL; in zend_dump_op_array() local
899 ssa = (const zend_ssa*)data; in zend_dump_op_array()
913 if (ssa) { in zend_dump_op_array()
971 if (ssa && ssa->var_info) { in zend_dump_op_array()
1151 if (ssa->vars) { in zend_dump_ssa_variables()
[all …]
H A Dzend_dump.h34 …asic_block *b, const zend_op *opline, uint32_t dump_flags, const zend_ssa *ssa, const zend_ssa_op …
37 void zend_dump_phi_placement(const zend_op_array *op_array, const zend_ssa *ssa);
39 void zend_dump_ssa_variables(const zend_op_array *op_array, const zend_ssa *ssa, uint32_t dump_flag…
40 void zend_dump_ssa_var(const zend_op_array *op_array, const zend_ssa *ssa, int ssa_var_num, zend_uc…
H A Dsccp.c329 zend_ssa_unlink_use_chain(ctx->scdf.ssa, ssa_op - ctx->scdf.ssa->ops, ssa_op->op2_use); in try_replace_op1()
358 zend_ssa_unlink_use_chain(ctx->scdf.ssa, next_op - ctx->scdf.ssa->ops, next_op->op2_use); in try_replace_op2()
1975 zend_ssa *ssa = scdf->ssa; in sccp_mark_feasible_successors() local
1991 zend_ssa *ssa = scdf->ssa; in sccp_mark_feasible_successors() local
2098 zend_ssa *ssa = scdf->ssa; in sccp_visit_phi() local
2141 zend_ssa *ssa = ctx->scdf.ssa; in value_from_type_and_range() local
2184 zend_ssa *ssa = ctx->scdf.ssa; in remove_call() local
2223 zend_ssa *ssa = ctx->scdf.ssa; in try_remove_definition() local
2450 zend_ssa *ssa = ctx->scdf.ssa; in replace_constant_operands() local
2531 for (; i < ssa->vars_count; ++i) { in sccp_context_init()
[all …]
H A Dzend_optimizer_internal.h105 int zend_dfa_analyze_op_array(zend_op_array *op_array, zend_optimizer_ctx *ctx, zend_ssa *ssa);
106 void zend_dfa_optimize_op_array(zend_op_array *op_array, zend_optimizer_ctx *ctx, zend_ssa *ssa, ze…
116 int sccp_optimize_op_array(zend_optimizer_ctx *ctx, zend_op_array *op_arrya, zend_ssa *ssa, zend_ca…
117 int dce_optimize_op_array(zend_op_array *op_array, zend_ssa *ssa, zend_bool reorder_dtor_effects);
118 int zend_ssa_escape_analysis(const zend_script *script, zend_op_array *op_array, zend_ssa *ssa);
H A Dzend_func_info.h60 const zend_call_info *call_info, const zend_ssa *ssa,
H A Dzend_call_graph.h47 zend_ssa ssa; /* Static Single Assignmnt Form */ member
H A Dzend_func_info.c59 && ssa in zend_range_info()
60 && !(ssa->cfg.flags & ZEND_SSA_TSSA)) { in zend_range_info()
62 uint32_t t1 = _ssa_op1_info(op_array, ssa, call_info->arg_info[0].opline, in zend_range_info()
63 &ssa->ops[call_info->arg_info[0].opline - op_array->opcodes]); in zend_range_info()
64 uint32_t t2 = _ssa_op1_info(op_array, ssa, call_info->arg_info[1].opline, in zend_range_info()
65 &ssa->ops[call_info->arg_info[1].opline - op_array->opcodes]); in zend_range_info()
70 t3 = _ssa_op1_info(op_array, ssa, call_info->arg_info[2].opline, in zend_range_info()
71 &ssa->ops[call_info->arg_info[2].opline - op_array->opcodes]); in zend_range_info()
845 return info->info_func(call_info, ssa); in get_internal_func_info()
852 const zend_call_info *call_info, const zend_ssa *ssa, in zend_get_func_info() argument
[all …]
H A Dzend_optimizer.c1178 static void zend_redo_pass_two_ex(zend_op_array *op_array, zend_ssa *ssa) in zend_redo_pass_two_ex() argument
1207 zend_ssa_op *ssa_op = &ssa->ops[opline - op_array->opcodes]; in zend_redo_pass_two_ex()
1358 zend_ssa_op *ssa_op = &func_info->ssa.ops[def_opline - op_array->opcodes]; in needs_live_range()
1368 if (func_info->ssa.vars[ssa_var].phi_use_chain) { in needs_live_range()
1369 ssa_var = func_info->ssa.vars[ssa_var].phi_use_chain->ssa_var; in needs_live_range()
1372 uint32_t type = func_info->ssa.var_info[ssa_var].type; in needs_live_range()
1456 if (zend_dfa_analyze_op_array(call_graph.op_arrays[i], &ctx, &func_info->ssa) == SUCCESS) { in zend_optimize_script()
1457 func_info->flags = func_info->ssa.cfg.flags; in zend_optimize_script()
1468 zend_dfa_optimize_op_array(call_graph.op_arrays[i], &ctx, &func_info->ssa, func_info->call_map); in zend_optimize_script()
1514 if (func_info && func_info->ssa.var_info) { in zend_optimize_script()
[all …]
/PHP-8.0/ext/opcache/jit/
H A Dzend_jit.c340 if (rt_opline && ssa && ssa->cfg.map) { in dasm_link_and_encode()
425 if (rt_opline && ssa && ssa->cfg.map) { in dasm_link_and_encode()
463 ssa ? &ssa->cfg : NULL, in dasm_link_and_encode()
535 if (!ssa->ops || !ssa->var_info) { in zend_may_overflow()
2614 if (ssa->var_info && ssa->ops) { in zend_jit()
2661 if (ssa->var_info && ssa->ops) { in zend_jit()
2701 if (ssa->var_info && ssa->ops) { in zend_jit()
3207 if (ssa->var_info && ssa->ops) { in zend_jit()
3225 if (!ssa->ops || !ssa->var_info) { in zend_jit()
3346 if (ssa->var_info && ssa->ops) { in zend_jit()
[all …]
H A Dzend_jit_trace.c492 ssa = &jit_extension->func_info.ssa; in zend_jit_trace_build_ssa()
1171 ssa = &jit_extension->func_info.ssa; in zend_jit_trace_build_tssa()
1189 ssa = &jit_extension->func_info.ssa; in zend_jit_trace_build_tssa()
1412 ssa = &jit_extension->func_info.ssa; in zend_jit_trace_build_tssa()
2101 ssa = &jit_extension->func_info.ssa; in zend_jit_trace_build_tssa()
2172 ssa = &jit_extension->func_info.ssa; in zend_jit_trace_build_tssa()
2305 ssa = &jit_extension->func_info.ssa; in zend_jit_trace_build_tssa()
3332 if (ssa && ssa->vars[i].no_val) { in zend_jit_trace_deoptimization()
3367 if (ssa && ssa->vars[i].no_val) { in zend_jit_trace_deoptimization()
4454 if (ssa->var_info && ssa->ops) { in zend_jit_trace()
[all …]
H A Dzend_jit_x86.dasc9395 if (end - op_array->opcodes >= ssa->cfg.blocks[b].start + ssa->cfg.blocks[b].len) {
9409 if (end - op_array->opcodes >= ssa->cfg.blocks[b].start + ssa->cfg.blocks[b].len) {
11473 if (ssa->vars && ssa->var_info) {
11474 info = ssa->var_info[var].type;
11476 if (ssa->vars[j].var == var) {
15698 if (!ssa->cfg.map) {
15732 if (ssa->vars[var].no_val) {
16139 if (ssa_op == ssa->ops
16149 if (ssa_op == ssa->ops
16161 uint32_t b = ssa->cfg.map[ssa_op - ssa->ops];
[all …]
H A Dzend_jit_x86.h266 zend_ival_is_last_use(ra[ssa_op->op], ssa_op - ssa->ops) \
/PHP-8.0/ext/opcache/tests/opt/
H A Dnullsafe_002.phpt2 Nullsafe e-ssa pi node placement

Completed in 150 milliseconds