Lines Matching refs:ssa_var
383 int ssa_var, in zend_jit_trace_add_op_guard() argument
386 zend_ssa_var_info *info = &tssa->var_info[ssa_var]; in zend_jit_trace_add_op_guard()
389 if (UNEXPECTED(tssa->vars[ssa_var].alias != NO_ALIAS)) { in zend_jit_trace_add_op_guard()
651 phi->ssa_var = ssa_vars_count; in zend_jit_trace_add_phis()
688 phi->ssa_var = ssa_vars_count; in zend_jit_trace_add_call_phis()
720 phi->ssa_var = ssa_vars_count; in zend_jit_trace_add_ret_phis()
729 …op_array *op_array, const zend_ssa *ssa, const zend_op **tssa_opcodes, zend_ssa *tssa, int ssa_var) in zend_jit_trace_copy_ssa_var_info() argument
737 if (tssa->vars[ssa_var].phi_use_chain) { in zend_jit_trace_copy_ssa_var_info()
739 var = tssa->vars[ssa_var].phi_use_chain->ssa_var; in zend_jit_trace_copy_ssa_var_info()
741 var = ssa_var; in zend_jit_trace_copy_ssa_var_info()
763 tssa->vars[ssa_var].no_val = no_val; in zend_jit_trace_copy_ssa_var_info()
764 tssa->vars[ssa_var].alias = alias; in zend_jit_trace_copy_ssa_var_info()
765 memcpy(&tssa->var_info[ssa_var], info, sizeof(zend_ssa_var_info)); in zend_jit_trace_copy_ssa_var_info()
771 …op_array *op_array, const zend_ssa *ssa, const zend_op **tssa_opcodes, zend_ssa *tssa, int ssa_var) in zend_jit_trace_copy_ssa_var_range() argument
779 def = tssa->vars[ssa_var].definition; in zend_jit_trace_copy_ssa_var_range()
783 if (tssa->ops[def].op1_def == ssa_var) { in zend_jit_trace_copy_ssa_var_range()
787 } else if (tssa->ops[def].op2_def == ssa_var) { in zend_jit_trace_copy_ssa_var_range()
791 } else if (tssa->ops[def].result_def == ssa_var) { in zend_jit_trace_copy_ssa_var_range()
800 tssa->vars[ssa_var].no_val = no_val; in zend_jit_trace_copy_ssa_var_range()
801 tssa->vars[ssa_var].alias = alias; in zend_jit_trace_copy_ssa_var_range()
804 if (tssa->var_info[ssa_var].has_range) { in zend_jit_trace_copy_ssa_var_range()
805 tssa->var_info[ssa_var].range.min = MAX(tssa->var_info[ssa_var].range.min, info->range.min); in zend_jit_trace_copy_ssa_var_range()
806 tssa->var_info[ssa_var].range.max = MIN(tssa->var_info[ssa_var].range.max, info->range.max); in zend_jit_trace_copy_ssa_var_range()
807 …tssa->var_info[ssa_var].range.underflow = tssa->var_info[ssa_var].range.underflow && info->range.u… in zend_jit_trace_copy_ssa_var_range()
808 …tssa->var_info[ssa_var].range.overflow = tssa->var_info[ssa_var].range.overflow && info->range.ove… in zend_jit_trace_copy_ssa_var_range()
810 tssa->var_info[ssa_var].has_range = 1; in zend_jit_trace_copy_ssa_var_range()
811 tssa->var_info[ssa_var].range = info->range; in zend_jit_trace_copy_ssa_var_range()
819 …op_array *op_array, const zend_ssa *ssa, const zend_op **tssa_opcodes, zend_ssa *tssa, int ssa_var) in zend_jit_trace_restrict_ssa_var_info() argument
825 def = tssa->vars[ssa_var].definition; in zend_jit_trace_restrict_ssa_var_info()
829 if (tssa->ops[def].op1_def == ssa_var) { in zend_jit_trace_restrict_ssa_var_info()
831 } else if (tssa->ops[def].op2_def == ssa_var) { in zend_jit_trace_restrict_ssa_var_info()
833 } else if (tssa->ops[def].result_def == ssa_var) { in zend_jit_trace_restrict_ssa_var_info()
839 tssa->var_info[ssa_var].type &= info->type; in zend_jit_trace_restrict_ssa_var_info()
841 if (tssa->var_info[ssa_var].ce) { in zend_jit_trace_restrict_ssa_var_info()
842 if (tssa->var_info[ssa_var].ce != info->ce) { in zend_jit_trace_restrict_ssa_var_info()
843 if (instanceof_function(tssa->var_info[ssa_var].ce, info->ce)) { in zend_jit_trace_restrict_ssa_var_info()
845 } else if (instanceof_function(info->ce, tssa->var_info[ssa_var].ce)) { in zend_jit_trace_restrict_ssa_var_info()
852 tssa->var_info[ssa_var].is_instanceof = in zend_jit_trace_restrict_ssa_var_info()
853 tssa->var_info[ssa_var].is_instanceof && info->is_instanceof; in zend_jit_trace_restrict_ssa_var_info()
855 tssa->var_info[ssa_var].ce = info->ce; in zend_jit_trace_restrict_ssa_var_info()
856 tssa->var_info[ssa_var].is_instanceof = info->is_instanceof; in zend_jit_trace_restrict_ssa_var_info()
860 if (tssa->var_info[ssa_var].has_range) { in zend_jit_trace_restrict_ssa_var_info()
861 tssa->var_info[ssa_var].range.min = MAX(tssa->var_info[ssa_var].range.min, info->range.min); in zend_jit_trace_restrict_ssa_var_info()
862 tssa->var_info[ssa_var].range.max = MIN(tssa->var_info[ssa_var].range.max, info->range.max); in zend_jit_trace_restrict_ssa_var_info()
863 …tssa->var_info[ssa_var].range.underflow = tssa->var_info[ssa_var].range.underflow && info->range.u… in zend_jit_trace_restrict_ssa_var_info()
864 …tssa->var_info[ssa_var].range.overflow = tssa->var_info[ssa_var].range.overflow && info->range.ove… in zend_jit_trace_restrict_ssa_var_info()
866 tssa->var_info[ssa_var].has_range = 1; in zend_jit_trace_restrict_ssa_var_info()
867 tssa->var_info[ssa_var].range = info->range; in zend_jit_trace_restrict_ssa_var_info()
1367 ssa_vars[phi->ssa_var].var = phi->var; in zend_jit_trace_build_tssa()
1368 ssa_vars[phi->ssa_var].definition_phi = phi; in zend_jit_trace_build_tssa()
1514 || !zend_jit_trace_copy_ssa_var_info(op_array, ssa, ssa_opcodes, tssa, phi->ssa_var)) { in zend_jit_trace_build_tssa()
1515 ssa_vars[phi->ssa_var].alias = ssa_vars[phi->sources[0]].alias; in zend_jit_trace_build_tssa()
1516 ssa_var_info[phi->ssa_var].type = ssa_var_info[phi->sources[0]].type; in zend_jit_trace_build_tssa()
2308 uint32_t t = ssa_var_info[phi->ssa_var].type; in zend_jit_trace_build_tssa()
2313 if (tssa->vars[phi->ssa_var].alias != NO_ALIAS) { in zend_jit_trace_build_tssa()
2317 ssa_var_info[phi->ssa_var].type = t & ~MAY_BE_GUARD; in zend_jit_trace_build_tssa()
2321 || is_checked_guard(tssa, ssa_opcodes, phi->sources[1], phi->ssa_var)) { in zend_jit_trace_build_tssa()
2322 ssa_var_info[phi->ssa_var].type = t & ~MAY_BE_GUARD; in zend_jit_trace_build_tssa()
2331 && is_checked_guard(tssa, ssa_opcodes, phi->sources[1], phi->ssa_var)) { in zend_jit_trace_build_tssa()
2333 ssa_var_info[phi->ssa_var].type = t & ~MAY_BE_GUARD; in zend_jit_trace_build_tssa()
2516 SET_STACK_VAR(stack, phi->var, phi->ssa_var); in zend_jit_trace_allocate_registers()
2517 vars_op_array[phi->ssa_var] = op_array; in zend_jit_trace_allocate_registers()
2518 if (ssa->vars[phi->ssa_var].use_chain >= 0 in zend_jit_trace_allocate_registers()
2519 && ssa->vars[phi->ssa_var].alias == NO_ALIAS in zend_jit_trace_allocate_registers()
2520 && zend_jit_var_supports_reg(ssa, phi->ssa_var)) { in zend_jit_trace_allocate_registers()
2521 start[phi->ssa_var] = 0; in zend_jit_trace_allocate_registers()
2817 if (start[i] >= 0 && !ssa->vars[phi->ssa_var].no_val) { in zend_jit_trace_allocate_registers()
2869 list[j].ssa_var = i; in zend_jit_trace_allocate_registers()
2904 list[j].ssa_var = - 1; in zend_jit_trace_allocate_registers()
2925 if (intervals[phi->ssa_var]) { in zend_jit_trace_allocate_registers()
2928 (ssa->var_info[phi->ssa_var].type & MAY_BE_ANY)) { in zend_jit_trace_allocate_registers()
2929 intervals[phi->sources[1]]->hint = intervals[phi->ssa_var]; in zend_jit_trace_allocate_registers()
3045 zend_jit_dump_lifetime_interval(vars_op_array[ival->ssa_var], ssa, ival); in zend_jit_trace_allocate_registers()
3064 ival->list_next = intervals[ival->ssa_var]; in zend_jit_trace_allocate_registers()
3065 intervals[ival->ssa_var] = ival; in zend_jit_trace_allocate_registers()
3098 int def = phi->ssa_var; in zend_jit_trace_allocate_registers()
3123 intervals[use]->ssa_var = phi->sources[0]; in zend_jit_trace_allocate_registers()
3165 zend_jit_dump_lifetime_interval(vars_op_array[ival->ssa_var], ssa, ival); in zend_jit_trace_allocate_registers()
3830 && !(ssa->var_info[ssa->vars[i].phi_use_chain->ssa_var].type & MAY_BE_GUARD)))) { in zend_jit_trace()
3908 zend_lifetime_interval *ival = ra[phi->ssa_var]; in zend_jit_trace()
3912 uint32_t info = ssa->var_info[phi->ssa_var].type; in zend_jit_trace()
3920 ssa->var_info[phi->ssa_var].type = info; in zend_jit_trace()
3924 …if (!zend_jit_load_var(&dasm_state, ssa->var_info[phi->ssa_var].type, ssa->vars[phi->ssa_var].var,… in zend_jit_trace()
3931 …if (!zend_jit_store_var(&dasm_state, ssa->var_info[phi->ssa_var].type, ssa->vars[phi->ssa_var].var… in zend_jit_trace()
3932 STACK_MEM_TYPE(stack, phi->var) != ssa->var_info[phi->ssa_var].type)) { in zend_jit_trace()
6467 if (ra[phi->ssa_var] in zend_jit_trace()
6470 && (ra[phi->ssa_var]->flags & (ZREG_LOAD|ZREG_STORE)) == 0 in zend_jit_trace()
6907 zend_dump_ssa_var(op_array, tssa, p->ssa_var, 0, p->var, ZEND_DUMP_RC_INFERENCE); in zend_jit_dump_trace()