Home
last modified time | relevance | path

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

/php-src/Zend/Optimizer/
H A Ddfa_pass.c163 ssa->ops[target] = ssa->ops[i]; in zend_ssa_remove_nops()
205 ssa->vars[j].use_chain -= shiftlist[ssa->vars[j].use_chain]; in zend_ssa_remove_nops()
376 && zend_may_throw(opline, &ssa->ops[ssa->vars[src_var].definition], op_array, ssa)) { in opline_supports_assign_contraction()
1228 ssa->ops[op_1].op1_use = ssa->ops[op_1].op2_use; in zend_dfa_optimize_op_array()
1248 ssa->ops[op_1].op1_use = ssa->ops[op_1].op2_use; in zend_dfa_optimize_op_array()
1293 ssa->ops[op_1].op2_use = ssa->ops[op_1].op1_use; in zend_dfa_optimize_op_array()
1460 ssa->ops[op_2].op1_use = ssa->ops[op_2].op2_use; in zend_dfa_optimize_op_array()
1614 ssa->ops[op_2].op1_use = ssa->ops[op_2].op2_use; in zend_dfa_optimize_op_array()
1636 ssa->ops[op_1].op1_use = ssa->ops[op_1].op2_use; in zend_dfa_optimize_op_array()
1692 ssa->ops[op_1].result_def = ssa->ops[op_1].op1_def; in zend_dfa_optimize_op_array()
[all …]
H A Dzend_inference.h47 ssa->var_info && \
49 ssa->var_info[ssa_op->opN##_use].has_range); \
63 ssa->var_info && \
65 ssa->var_info[ssa_op->opN##_use].has_range) { \
80 ssa->var_info && \
97 ssa->var_info && \
114 ssa->var_info && \
167 if (ssa->var_info && ssa_var_num >= 0) { in get_ssa_var_info()
168 return ssa->var_info[ssa_var_num].type; in get_ssa_var_info()
180 return get_ssa_var_info(ssa, ssa->var_info ? ssa_op->opN##_use : -1); \
[all …]
H A Ddce.c50 zend_ssa *ssa; member
318 zend_ssa *ssa = ctx->ssa; in add_phi_sources_to_worklists() local
414 zend_ssa *ssa = ctx->ssa; in dce_instr() local
460 ssa->vars[free_var].use_chain = ssa_op - ssa->ops; in dce_instr()
487 zend_ssa *ssa = ctx->ssa; in try_remove_trivial_phi() local
535 ctx.ssa = ssa; in dce_optimize_op_array()
584 add_operands_to_worklists(&ctx, &op_array->opcodes[i], &ssa->ops[i], ssa, 0); in dce_optimize_op_array()
589 || (zend_may_throw(&op_array->opcodes[i], &ssa->ops[i], op_array, ssa) in dce_optimize_op_array()
591 || (has_varargs && may_break_varargs(op_array, ssa, &ssa->ops[i]))) { in dce_optimize_op_array()
599 add_operands_to_worklists(&ctx, &op_array->opcodes[i], &ssa->ops[i], ssa, 0); in dce_optimize_op_array()
[all …]
H A Dscdf.c84 scdf->ssa = ssa; in scdf_init()
104 zend_ssa *ssa = scdf->ssa; in scdf_solve() local
120 int block_num = ssa->cfg.map[i]; in scdf_solve()
124 zend_ssa_op *ssa_op = &ssa->ops[i]; in scdf_solve()
210 const zend_cfg *cfg = &scdf->ssa->cfg; in kept_alive_by_loop_var_free()
224 zend_ssa *ssa = scdf->ssa; in cleanup_loop_var_free_block() local
226 const zend_cfg *cfg = &ssa->cfg; in cleanup_loop_var_free_block()
233 zend_ssa_remove_phi(ssa, phi); in cleanup_loop_var_free_block()
238 zend_ssa_op *ssa_op = &scdf->ssa->ops[i]; in cleanup_loop_var_free_block()
246 zend_ssa_remove_defs_of_instr(ssa, ssa_op); in cleanup_loop_var_free_block()
[all …]
H A Dssa_integrity.c26 FOREACH_USE(&ssa->vars[var], use) { in is_in_use_chain()
110 (ssa->vars[i].var < op_array->last_var ? ZSTR_VAL(op_array->vars[ssa->vars[i].var]) : "")
117 zend_cfg *cfg = &ssa->cfg; in ssa_verify_integrity()
155 use = zend_ssa_next_use(ssa->ops, var - ssa->vars, use); in ssa_verify_integrity()
156 second_use = zend_ssa_next_use(ssa->ops, var - ssa->vars, second_use); in ssa_verify_integrity()
160 second_use = zend_ssa_next_use(ssa->ops, var - ssa->vars, second_use); in ssa_verify_integrity()
177 phi = zend_ssa_next_use_phi(ssa, var - ssa->vars, phi); in ssa_verify_integrity()
178 second_phi = zend_ssa_next_use_phi(ssa, var - ssa->vars, second_phi); in ssa_verify_integrity()
182 second_phi = zend_ssa_next_use_phi(ssa, var - ssa->vars, second_phi); in ssa_verify_integrity()
341 if (ssa->vars[source].var != ssa->vars[phi->ssa_var].var) { in ssa_verify_integrity()
[all …]
H A Dzend_ssa.h179 zend_ssa_var *var = &ssa->vars[ssa_op->op1_def]; in zend_ssa_remove_op1_def()
186 zend_ssa_var *var = &ssa->vars[ssa_op->op2_def]; in zend_ssa_remove_op2_def()
245 ssa->vars[ssa_op->op1_def].definition = -1; in zend_ssa_rename_defs_of_instr()
252 ssa->vars[ssa_op->op2_def].definition = -1; in zend_ssa_rename_defs_of_instr()
259 ssa->vars[ssa_op->result_def].definition = -1; in zend_ssa_rename_defs_of_instr()
270 int _var_num = (var) - ssa->vars, next; \
278 int _var_num = (var) - ssa->vars; \
298 for (_i = 0; _i < ssa->cfg.blocks_count; _i++) { \
299 phi = ssa->blocks[_i].phis; \
308 for (_i = 0; _i < ssa->cfg.blocks_count; _i++) { \
[all …]
H A Dzend_ssa.c1089 if (!ssa->vars) { in zend_ssa_compute_use_def_chains()
1205 ssa->vars[var].use_chain = zend_ssa_next_use(ssa->ops, var, op); in zend_ssa_unlink_use_chain()
1213 ssa->ops[use].res_use_chain = zend_ssa_next_use(ssa->ops, var, op); in zend_ssa_unlink_use_chain()
1220 ssa->ops[use].op1_use_chain = zend_ssa_next_use(ssa->ops, var, op); in zend_ssa_unlink_use_chain()
1290 zend_ssa_unlink_use_chain(ssa, ssa_op - ssa->ops, ssa_op->op1_use); in zend_ssa_remove_instr()
1298 zend_ssa_unlink_use_chain(ssa, ssa_op - ssa->ops, ssa_op->op2_use); in zend_ssa_remove_instr()
1522 zend_ssa_remove_defs_of_instr(ssa, &ssa->ops[j]); in zend_ssa_remove_block()
1523 zend_ssa_remove_instr(ssa, &op_array->opcodes[j], &ssa->ops[j]); in zend_ssa_remove_block()
1587 if (ssa->var_info[var].type & ~ssa->var_info[phi->ssa_var].type) { in propagate_phi_type_widening()
1588 ssa->var_info[phi->ssa_var].type |= ssa->var_info[var].type; in propagate_phi_type_widening()
[all …]
H A Dzend_inference.c207 ssa->vars[var2].scc = ssa->sccs;
210 ssa->vars[var].scc = ssa->sccs;
229 ssa->sccs = ssa->vars_count;
240 ssa->vars[j].scc -= ssa->sccs;
244 ssa->sccs = ssa->vars_count - ssa->sccs;
431 ssa->vars[var2].scc = ssa->sccs; in zend_ssa_check_scc_var()
434 ssa->vars[var].scc = ssa->sccs; in zend_ssa_check_scc_var()
458 ssa->sccs = ssa->vars_count; in zend_ssa_find_sccs()
469 ssa->vars[j].scc -= ssa->sccs; in zend_ssa_find_sccs()
473 ssa->sccs = ssa->vars_count - ssa->sccs; in zend_ssa_find_sccs()
[all …]
H A Dzend_func_info.c52 static uint32_t zend_range_info(const zend_call_info *call_info, const zend_ssa *ssa) in zend_range_info() argument
58 && ssa in zend_range_info()
59 && !(ssa->cfg.flags & ZEND_SSA_TSSA)) { in zend_range_info()
61 uint32_t t1 = _ssa_op1_info(op_array, ssa, call_info->arg_info[0].opline, in zend_range_info()
62 ssa->ops ? &ssa->ops[call_info->arg_info[0].opline - op_array->opcodes] : NULL); in zend_range_info()
63 uint32_t t2 = _ssa_op1_info(op_array, ssa, call_info->arg_info[1].opline, in zend_range_info()
64 ssa->ops ? &ssa->ops[call_info->arg_info[1].opline - op_array->opcodes] : NULL); in zend_range_info()
69 t3 = _ssa_op1_info(op_array, ssa, call_info->arg_info[2].opline, in zend_range_info()
70 ssa->ops ? &ssa->ops[call_info->arg_info[2].opline - op_array->opcodes] : NULL); in zend_range_info()
121 return call_info ? info->info_func(call_info, ssa) : 0; in zend_get_internal_func_info()
[all …]
H A Descape_analysis.c78 zend_ssa_var *ssa_vars = ssa->vars; in zend_build_equi_escape_sets()
79 int ssa_vars_count = ssa->vars_count; in zend_build_equi_escape_sets()
103 zend_ssa_op *op = ssa->ops + def; in zend_build_equi_escape_sets()
152 zend_ssa_op *ssa_op = ssa->ops + def; in is_allocation_def()
223 zend_ssa_op *op = ssa->ops + def; in is_local_def()
273 zend_ssa_op *ssa_op = ssa->ops + use; in is_escape_use()
384 zend_ssa_var *ssa_vars = ssa->vars; in zend_ssa_escape_analysis()
385 int ssa_vars_count = ssa->vars_count; in zend_ssa_escape_analysis()
399 && (ssa->var_info[i].type & (MAY_BE_ARRAY|MAY_BE_OBJECT)) in zend_ssa_escape_analysis()
454 if (is_escape_use(op_array, ssa, use, i)) { in zend_ssa_escape_analysis()
[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 const zend_ssa *ssa = scdf->ssa; in scdf_add_to_worklist() local
57 const zend_ssa_var *var = &ssa->vars[var_num]; in scdf_add_to_worklist()
70 const 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 Dzend_dump.c385 if (ssa->var_info) { in zend_dump_ssa_var()
762 const zend_ssa *ssa = NULL; in zend_dump_op_line() local
773 ssa = (const zend_ssa*)data; in zend_dump_op_line()
774 if (ssa && ssa->ops) { in zend_dump_op_line()
884 if (ssa && ssa->blocks && ssa->blocks[n].phis) { in zend_dump_block_header()
933 const zend_ssa *ssa = NULL; in zend_dump_op_array() local
944 ssa = (const zend_ssa*)data; in zend_dump_op_array()
958 if (ssa) { in zend_dump_op_array()
1016 if (ssa && ssa->var_info) { in zend_dump_op_array()
1182 if (ssa->vars) { in zend_dump_ssa_variables()
[all …]
H A Dzend_dump.h37 …asic_block *b, const zend_op *opline, uint32_t dump_flags, const zend_ssa *ssa, const zend_ssa_op …
41 void zend_dump_phi_placement(const zend_op_array *op_array, const zend_ssa *ssa);
42 void zend_dump_ssa_variables(const zend_op_array *op_array, const zend_ssa *ssa, uint32_t dump_flag…
43 ZEND_API void zend_dump_ssa_var(const zend_op_array *op_array, const zend_ssa *ssa, int ssa_var_num…
H A Dsccp.c1773 zend_ssa *ssa = ctx->scdf.ssa; in value_from_type_and_range() local
1787 if (ssa->vars[var_num].definition >= 0 in value_from_type_and_range()
1918 zend_ssa *ssa = scdf->ssa; in sccp_mark_feasible_successors() local
1934 zend_ssa *ssa = scdf->ssa; in sccp_mark_feasible_successors() local
2041 zend_ssa *ssa = scdf->ssa; in sccp_visit_phi() local
2086 zend_ssa *ssa = ctx->scdf.ssa; in remove_call() local
2125 zend_ssa *ssa = ctx->scdf.ssa; in try_remove_definition() local
2372 zend_ssa *ssa = ctx->scdf.ssa; in replace_constant_operands() local
2381 zend_ssa_var *var = &ssa->vars[i]; in replace_constant_operands()
2453 for (; i < ssa->vars_count; ++i) { in sccp_context_init()
[all …]
H A Dzend_func_info.h60 const zend_function *callee_func, const zend_call_info *call_info, const zend_ssa *ssa);
62 const zend_call_info *call_info, const zend_ssa *ssa,
H A Dzend_optimizer_internal.h116 …_result zend_dfa_analyze_op_array(zend_op_array *op_array, zend_optimizer_ctx *ctx, zend_ssa *ssa);
117 void zend_dfa_optimize_op_array(zend_op_array *op_array, zend_optimizer_ctx *ctx, zend_ssa *ssa, ze…
127 int sccp_optimize_op_array(zend_optimizer_ctx *ctx, zend_op_array *op_array, zend_ssa *ssa, zend_ca…
128 int dce_optimize_op_array(zend_op_array *op_array, zend_optimizer_ctx *optimizer_ctx, zend_ssa *ssa
129 …result zend_ssa_escape_analysis(const zend_script *script, zend_op_array *op_array, zend_ssa *ssa);
H A Dzend_call_graph.h49 zend_ssa ssa; /* Static Single Assignment Form */ member
H A Dzend_optimizer.c1352 zend_ssa_op *ssa_op = &ssa->ops[opline - op_array->opcodes]; in zend_redo_pass_two_ex()
1440 opline->op1_use_type = ssa->var_info[ssa_op->op1_use].type; in zend_redo_pass_two_ex()
1443 opline->op2_use_type = ssa->var_info[ssa_op->op2_use].type; in zend_redo_pass_two_ex()
1449 opline->op1_def_type = ssa->var_info[ssa_op->op1_def].type; in zend_redo_pass_two_ex()
1452 opline->op2_def_type = ssa->var_info[ssa_op->op2_def].type; in zend_redo_pass_two_ex()
1533 if (func_info->ssa.vars[ssa_var].phi_use_chain) { in needs_live_range()
1534 ssa_var = func_info->ssa.vars[ssa_var].phi_use_chain->ssa_var; in needs_live_range()
1537 uint32_t type = func_info->ssa.var_info[ssa_var].type; in needs_live_range()
1654 func_info->flags = func_info->ssa.cfg.flags; in zend_optimize_script()
1711 if (func_info && func_info->ssa.var_info) { in zend_optimize_script()
[all …]
/php-src/ext/opcache/jit/
H A Dzend_jit.c134 if (ssa->cfg.blocks[ssa->cfg.map[use]].loop_header > 0 in zend_ssa_is_last_use()
141 def_block =ssa->cfg.map[ssa->vars[var].definition]; in zend_ssa_is_last_use()
472 if (ssa->vars && ssa->var_info) { in zend_ssa_cv_info()
873 if (!ssa->ops || !ssa->var_info) { in zend_may_overflow()
1875 if (ssa->var_info && ssa->ops) { in zend_jit()
1926 if (ssa->var_info && ssa->ops) { in zend_jit()
1970 if (ssa->var_info && ssa->ops) { in zend_jit()
2447 if (ssa->var_info && ssa->ops) { in zend_jit()
2482 if (!ssa->ops || !ssa->var_info) { in zend_jit()
2617 if (ssa->var_info && ssa->ops) { in zend_jit()
[all …]
H A Dzend_jit_trace.c534 ssa = &jit_extension->func_info.ssa; in zend_jit_trace_build_ssa()
1440 ssa = &jit_extension->func_info.ssa; in zend_jit_trace_build_tssa()
1458 ssa = &jit_extension->func_info.ssa; in zend_jit_trace_build_tssa()
1684 ssa = &jit_extension->func_info.ssa; in zend_jit_trace_build_tssa()
2471 ssa = &jit_extension->func_info.ssa; in zend_jit_trace_build_tssa()
2539 ssa = &jit_extension->func_info.ssa; in zend_jit_trace_build_tssa()
2690 ssa = &jit_extension->func_info.ssa; in zend_jit_trace_build_tssa()
3591 if (ssa && ssa->vars[i].no_val) { in zend_jit_trace_deoptimization()
3614 if (ssa && ssa->vars[i].no_val) { in zend_jit_trace_deoptimization()
4827 if (ssa->var_info && ssa->ops) { in zend_jit_trace()
[all …]
H A Dzend_jit_ir.c1302 && jit->ssa->ops[jit->ssa->vars[var].definition].op1_def == var in zend_jit_spilling_may_cause_conflict()
1303 && jit->ssa->ops[jit->ssa->vars[var].definition].op1_use >= 0 in zend_jit_spilling_may_cause_conflict()
1304 && jit->ssa->vars[jit->ssa->ops[jit->ssa->vars[var].definition].op1_use].no_val in zend_jit_spilling_may_cause_conflict()
1305 && jit->ssa->vars[jit->ssa->ops[jit->ssa->vars[var].definition].op1_use].definition_phi in zend_jit_spilling_may_cause_conflict()
1306 …&& (jit->ssa->cfg.blocks[jit->ssa->vars[jit->ssa->ops[jit->ssa->vars[var].definition].op1_use].def… in zend_jit_spilling_may_cause_conflict()
2721 jit->ssa = NULL; in zend_jit_init_ctx()
16526 jit->ssa = ssa;
17075 jit->ssa = NULL;
17097 jit->ssa = ssa;
17135 if (ssa && ssa->vars[i].no_val) {
[all …]
/php-src/ext/opcache/tests/opt/
H A Dnullsafe_002.phpt2 Nullsafe e-ssa pi node placement

Completed in 153 milliseconds