/php-src/Zend/Optimizer/ |
H A D | ssa_integrity.c | 93 const zend_ssa_var *ssa_var = &ssa->vars[var]; in is_defined() local 94 return ssa_var->definition >= 0 || ssa_var->definition_phi || var < op_array->last_var; in is_defined() 146 if (var->definition_phi->ssa_var != i) { in ssa_verify_integrity() 191 FAIL("var " VARFMT " not in phi sources of %d\n", VAR(i), phi->ssa_var); in ssa_verify_integrity() 336 FAIL(VARFMT " negative source\n", VAR(phi->ssa_var)); in ssa_verify_integrity() 339 FAIL(VARFMT " not in phi use chain of %d\n", VAR(phi->ssa_var), source); in ssa_verify_integrity() 341 if (ssa->vars[source].var != ssa->vars[phi->ssa_var].var) { in ssa_verify_integrity() 342 FAIL(VARFMT " source of phi for " VARFMT "\n", VAR(source), VAR(phi->ssa_var)); in ssa_verify_integrity() 349 " at %d despite earlier use\n", VAR(source), VAR(phi->ssa_var), j); in ssa_verify_integrity() 354 if (ssa->vars[phi->ssa_var].definition_phi != phi) { in ssa_verify_integrity() [all …]
|
H A D | scdf.c | 76 zend_bitset_excl(scdf->phi_var_worklist, phi->ssa_var); in scdf_mark_edge_feasible() 151 zend_bitset_excl(scdf->phi_var_worklist, phi->ssa_var); in scdf_solve() 198 zend_ssa_var *ssa_var = &scdf->ssa->vars[var]; in is_live_loop_var_free() local 200 if (ssa_var->definition >= 0) { in is_live_loop_var_free() 201 def_block = scdf->ssa->cfg.map[ssa_var->definition]; in is_live_loop_var_free() 203 def_block = ssa_var->definition_phi->block; in is_live_loop_var_free() 232 zend_ssa_remove_uses_of_var(ssa, phi->ssa_var); in cleanup_loop_var_free_block()
|
H A D | zend_ssa.c | 111 phi->ssa_var = -1; in add_pi() 840 if (phi->ssa_var < 0) { in zend_ssa_rename() 841 phi->ssa_var = ssa_vars_count; in zend_ssa_rename() 845 var[phi->var] = phi->ssa_var; in zend_ssa_rename() 881 if (p->ssa_var < 0) { in zend_ssa_rename() 882 p->ssa_var = ssa_vars_count; in zend_ssa_rename() 910 q->sources[j] = p->ssa_var; in zend_ssa_rename() 1040 phi->ssa_var = -1; in zend_build_ssa() 1140 ssa_vars[phi->ssa_var].var = phi->var; in zend_ssa_compute_use_def_chains() 1412 ZEND_ASSERT(phi->ssa_var >= 0); in zend_ssa_remove_phi() [all …]
|
H A D | dce.c | 470 if (source == phi->ssa_var) { in get_common_phi_source() 492 zend_ssa_rename_var_uses(ssa, phi->ssa_var, common_source, 1); in try_remove_trivial_phi() 557 && may_be_refcounted(ssa->var_info[phi->ssa_var].type)) { in dce_optimize_op_array() 558 zend_bitset_excl(ctx.phi_dead, phi->ssa_var); in dce_optimize_op_array() 655 if (zend_bitset_in(ctx.phi_dead, phi->ssa_var)) { in dce_optimize_op_array() 656 zend_ssa_remove_uses_of_var(ssa, phi->ssa_var); in dce_optimize_op_array()
|
H A D | scdf.h | 64 zend_bitset_incl(scdf->phi_var_worklist, phi->ssa_var); in scdf_add_to_worklist()
|
H A D | zend_optimizer.c | 1524 int ssa_var = ssa_op->result_def; in needs_live_range() local 1525 if (ssa_var < 0) { in needs_live_range() 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()
|
H A D | zend_ssa.h | 68 int ssa_var; /* SSA variable index */ member
|
H A D | zend_inference.c | 160 MACRO(p->ssa_var); \ 194 CHECK_SCC_VAR(p->ssa_var); 357 var2 = phi->ssa_var; in zend_scc_next() 371 var2 = phi->ssa_var; in zend_scc_next() 1142 ssa->var_info[p->ssa_var].has_range) { in zend_inference_calc_range() 1145 p->ssa_var, in zend_inference_calc_range() 1146 ssa->var_info[p->ssa_var].range.min, in zend_inference_calc_range() 1147 ssa->var_info[p->ssa_var].range.max, in zend_inference_calc_range() 1927 ADD_SCC_VAR(p->ssa_var); in zend_infer_ranges() 2028 zend_bitset_incl(worklist, p->ssa_var); in add_usages() [all …]
|
H A D | sccp.c | 2042 ZEND_ASSERT(phi->ssa_var >= 0); in sccp_visit_phi() 2043 if (!IS_BOT(&ctx->values[phi->ssa_var])) { in sccp_visit_phi() 2056 …join_phi_values(&result, &ctx->values[phi->sources[0]], ssa->vars[phi->ssa_var].escape_state != ES… in sccp_visit_phi() 2066 …join_phi_values(&result, &ctx->values[phi->sources[i]], ssa->vars[phi->ssa_var].escape_state != ES… in sccp_visit_phi() 2078 set_value(scdf, ctx, phi->ssa_var, &result); in sccp_visit_phi()
|
H A D | dfa_pass.c | 620 ssa, phi->ssa_var, phi->sources[0], /* update_types */ 0); in replace_predecessor() 734 int ssa_var = ssa->ops[fe_fetch_block->start + fe_fetch_block->len - 1].op2_def; in zend_ssa_unlink_block() local 735 if (ssa_var >= 0) { in zend_ssa_unlink_block() 736 zend_ssa_remove_uses_of_var(ssa, ssa_var); in zend_ssa_unlink_block()
|
H A D | zend_dump.c | 891 zend_dump_ssa_var(op_array, ssa, p->ssa_var, 0, p->var, dump_flags); in zend_dump_block_header()
|
/php-src/ext/opcache/jit/ |
H A D | zend_jit_trace.c | 903 var = tssa->vars[ssa_var].phi_use_chain->ssa_var; in zend_jit_trace_copy_ssa_var_info() 905 var = ssa_var; in zend_jit_trace_copy_ssa_var_info() 3952 if (ssa_var >= 0 && ssa->vars[ssa_var].var == var_num) { in zend_jit_find_ssa_var() 3956 if (ssa_var >= 0 && ssa->vars[ssa_var].var == var_num) { in zend_jit_find_ssa_var() 3960 if (ssa_var >= 0 && ssa->vars[ssa_var].var == var_num) { in zend_jit_find_ssa_var() 3969 ssa_var = -1; in zend_jit_find_ssa_var() 3972 ssa_var = phi->ssa_var; in zend_jit_find_ssa_var() 3999 if (ssa_var >= 0 && ssa->vars[ssa_var].var == var_num) { in zend_jit_find_ssa_var() 4003 if (ssa_var >= 0 && ssa->vars[ssa_var].var == var_num) { in zend_jit_find_ssa_var() 4020 ssa_var = phi->ssa_var; in zend_jit_find_ssa_var() [all …]
|
H A D | zend_jit.c | 127 if (!ssa->vars[phi->ssa_var].no_val) { in zend_ssa_is_last_use() 1208 if (ra[phi->ssa_var].ref && in zend_jit_allocate_registers() 1209 !(ra[phi->ssa_var].flags & ZREG_LOAD)) { in zend_jit_allocate_registers() 1269 if (ra[phi->ssa_var].ref && in zend_jit_allocate_registers() 1270 !(ra[phi->ssa_var].flags & ZREG_LOAD)) { in zend_jit_allocate_registers() 1503 zend_jit_reg_var *ival = &ctx.ra[phi->ssa_var]; in zend_jit() 1551 zend_jit_reg_var *ival = &ra[phi->ssa_var]; in zend_jit() 1557 …if (!zend_jit_load_var(&ctx, ssa->var_info[phi->ssa_var].type, ssa->vars[phi->ssa_var].var, phi->s… in zend_jit() 1563 …f (!zend_jit_store_var(&ctx, ssa->var_info[phi->ssa_var].type, ssa->vars[phi->ssa_var].var, phi->s… in zend_jit()
|
H A D | zend_jit_ir.c | 1346 src_var = dst_phi->ssa_var; in zend_jit_def_reg() 1357 if (jit->ra[dst_phi->ssa_var].ref > 0) { in zend_jit_def_reg() 1358 ir_insn *phi_insn = &jit->ctx.ir_base[jit->ra[dst_phi->ssa_var].ref]; in zend_jit_def_reg() 1404 int dst_var = phi->ssa_var; in zend_jit_gen_pi() 1430 int dst_var = phi->ssa_var; in zend_jit_gen_phi() 1434 ir_type type = (jit->ssa->var_info[phi->ssa_var].type & MAY_BE_LONG) ? IR_LONG : IR_DOUBLE; in zend_jit_gen_phi() 4247 zend_jit_addr src = ZEND_ADDR_REG(ssa_var); in zend_jit_store_var() 4465 static int zend_jit_load_var(zend_jit_ctx *jit, uint32_t info, int var, int ssa_var) in zend_jit_load_var() argument 4468 zend_jit_addr dst = ZEND_ADDR_REG(ssa_var); in zend_jit_load_var() 17172 int dst_var = phi->ssa_var; [all …]
|