Lines Matching refs:worklist

64 #define WHILE_WORKLIST(worklist, len, i) do { \  argument
68 ZEND_BITSET_FOREACH(worklist, len, i) { \
69 zend_bitset_excl(worklist, i); \
101 zend_bitset_incl(worklist, _var); \
110 zend_bitset_incl(worklist, _var); \
495 zend_bitset worklist; in zend_ssa_find_false_dependencies() local
504 worklist = do_alloca(sizeof(zend_ulong) * zend_bitset_len(ssa_vars_count), use_heap); in zend_ssa_find_false_dependencies()
505 memset(worklist, 0, sizeof(zend_ulong) * zend_bitset_len(ssa_vars_count)); in zend_ssa_find_false_dependencies()
513 zend_bitset_incl(worklist, i); in zend_ssa_find_false_dependencies()
520 WHILE_WORKLIST(worklist, zend_bitset_len(ssa_vars_count), i) { in zend_ssa_find_false_dependencies()
527 zend_bitset_incl(worklist, p->sources[0]); in zend_ssa_find_false_dependencies()
534 zend_bitset_incl(worklist, p->sources[j]); in zend_ssa_find_false_dependencies()
541 free_alloca(worklist, use_heap); in zend_ssa_find_false_dependencies()
1708 zend_check_inner_cycles(op_array, ssa, worklist, visited, var2)) { \
1713 …_inner_cycles(const zend_op_array *op_array, zend_ssa *ssa, zend_bitset worklist, zend_bitset visi… in zend_check_inner_cycles() argument
1715 if (zend_bitset_in(worklist, var)) { in zend_check_inner_cycles()
1718 zend_bitset_incl(worklist, var); in zend_check_inner_cycles()
1731 zend_bitset worklist = do_alloca(sizeof(zend_ulong) * worklist_len * 2, use_heap); in zend_infer_ranges_warmup()
1732 zend_bitset visited = worklist + worklist_len; in zend_infer_ranges_warmup()
1736 memset(worklist, 0, sizeof(zend_ulong) * worklist_len); in zend_infer_ranges_warmup()
1741 zend_check_inner_cycles(op_array, ssa, worklist, visited, j)) { in zend_infer_ranges_warmup()
1749 memset(worklist, 0, sizeof(zend_ulong) * worklist_len); in zend_infer_ranges_warmup()
1756 zend_bitset_incl(worklist, j); in zend_infer_ranges_warmup()
1763 WHILE_WORKLIST(worklist, worklist_len, j) { in zend_infer_ranges_warmup()
1820 free_alloca(worklist, use_heap); in zend_infer_ranges_warmup()
1826 zend_bitset worklist; in zend_infer_ranges() local
1834 worklist = do_alloca( in zend_infer_ranges()
1838 next_scc_var = (int*)((char*)worklist + ZEND_MM_ALIGNED_SIZE(sizeof(zend_ulong) * worklist_len)); in zend_infer_ranges()
1865 memset(worklist, 0, sizeof(zend_ulong) * worklist_len); in zend_infer_ranges()
1869 zend_bitset_incl(worklist, j); in zend_infer_ranges()
1879 zend_bitset_incl(worklist, j); in zend_infer_ranges()
1886 WHILE_WORKLIST(worklist, worklist_len, j) { in zend_infer_ranges()
1902 WHILE_WORKLIST(worklist, worklist_len, j) { in zend_infer_ranges()
1916 zend_bitset_incl(worklist, j); in zend_infer_ranges()
1920 WHILE_WORKLIST(worklist, worklist_len, j) { in zend_infer_ranges()
1936 free_alloca(worklist, use_heap); in zend_infer_ranges()
1986 add_usages(op_array, ssa, worklist, __var); \
2006 add_usages(op_array, ssa, worklist, var); \
2023 static void add_usages(const zend_op_array *op_array, zend_ssa *ssa, zend_bitset worklist, int var) in add_usages() argument
2028 zend_bitset_incl(worklist, p->ssa_var); in add_usages()
2039 zend_bitset_incl(worklist, op->result_def); in add_usages()
2042 zend_bitset_incl(worklist, op->op1_def); in add_usages()
2045 zend_bitset_incl(worklist, op->op2_def); in add_usages()
2050 zend_bitset_incl(worklist, op->result_def); in add_usages()
2053 zend_bitset_incl(worklist, op->op1_def); in add_usages()
2056 zend_bitset_incl(worklist, op->op2_def); in add_usages()
2062 zend_bitset_incl(worklist, op->result_def); in add_usages()
2065 zend_bitset_incl(worklist, op->op1_def); in add_usages()
2068 zend_bitset_incl(worklist, op->op2_def); in add_usages()
2523 zend_bitset worklist, in _zend_update_type_info() argument
4179 …_array *op_array, const zend_script *script, zend_ssa *ssa, zend_bitset worklist, zend_long optimi… in zend_infer_types_ex() argument
4190 while (!zend_bitset_empty(worklist, worklist_len)) { in zend_infer_types_ex()
4191 j = zend_bitset_first(worklist, worklist_len); in zend_infer_types_ex()
4192 zend_bitset_excl(worklist, j); in zend_infer_types_ex()
4255 …if (_zend_update_type_info(op_array, ssa, script, worklist, op_array->opcodes + i, ssa->ops + i, N… in zend_infer_types_ex()
4436 zend_bitset visited, worklist; in zend_type_narrowing() local
4443 worklist = visited + bitset_len; in zend_type_narrowing()
4445 zend_bitset_clear(worklist, bitset_len); in zend_type_narrowing()
4467 zend_bitset_union(worklist, visited, bitset_len); in zend_type_narrowing()
4477 if (zend_infer_types_ex(op_array, script, ssa, worklist, optimization_level) == FAILURE) { in zend_type_narrowing()
4709 zend_bitset worklist; in zend_infer_types() local
4712 worklist = do_alloca(sizeof(zend_ulong) * zend_bitset_len(ssa_vars_count), use_heap); in zend_infer_types()
4713 memset(worklist, 0, sizeof(zend_ulong) * zend_bitset_len(ssa_vars_count)); in zend_infer_types()
4717 zend_bitset_incl(worklist, j); in zend_infer_types()
4720 if (zend_infer_types_ex(op_array, script, ssa, worklist, optimization_level) == FAILURE) { in zend_infer_types()
4721 free_alloca(worklist, use_heap); in zend_infer_types()
4734 free_alloca(worklist, use_heap); in zend_infer_types()
4744 zend_bitset worklist; in zend_mark_cv_references() local
4747 worklist = do_alloca(sizeof(zend_ulong) * worklist_len, use_heap); in zend_mark_cv_references()
4748 memset(worklist, 0, sizeof(zend_ulong) * worklist_len); in zend_mark_cv_references()
4822 zend_bitset_incl(worklist, var); in zend_mark_cv_references()
4824 zend_bitset_incl(worklist, var); in zend_mark_cv_references()
4826 zend_bitset_incl(worklist, var); in zend_mark_cv_references()
4831 WHILE_WORKLIST(worklist, worklist_len, var) { in zend_mark_cv_references()
4839 zend_bitset_incl(worklist, p->ssa_var); in zend_mark_cv_references()
4856 zend_bitset_incl(worklist, op->op1_def); in zend_mark_cv_references()
4861 zend_bitset_incl(worklist, op->op2_def); in zend_mark_cv_references()
4866 zend_bitset_incl(worklist, op->result_def); in zend_mark_cv_references()
4873 free_alloca(worklist, use_heap); in zend_mark_cv_references()