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); \
497 zend_bitset worklist; in zend_ssa_find_false_dependencies() local
506 worklist = do_alloca(sizeof(zend_ulong) * zend_bitset_len(ssa_vars_count), use_heap); in zend_ssa_find_false_dependencies()
507 memset(worklist, 0, sizeof(zend_ulong) * zend_bitset_len(ssa_vars_count)); in zend_ssa_find_false_dependencies()
515 zend_bitset_incl(worklist, i); in zend_ssa_find_false_dependencies()
522 WHILE_WORKLIST(worklist, zend_bitset_len(ssa_vars_count), i) { in zend_ssa_find_false_dependencies()
529 zend_bitset_incl(worklist, p->sources[0]); in zend_ssa_find_false_dependencies()
536 zend_bitset_incl(worklist, p->sources[j]); in zend_ssa_find_false_dependencies()
543 free_alloca(worklist, use_heap); in zend_ssa_find_false_dependencies()
1731 zend_check_inner_cycles(op_array, ssa, worklist, visited, var2)) { \
1736 …_inner_cycles(const zend_op_array *op_array, zend_ssa *ssa, zend_bitset worklist, zend_bitset visi… in zend_check_inner_cycles() argument
1738 if (zend_bitset_in(worklist, var)) { in zend_check_inner_cycles()
1741 zend_bitset_incl(worklist, var); in zend_check_inner_cycles()
1754 zend_bitset worklist = do_alloca(sizeof(zend_ulong) * worklist_len * 2, use_heap); in zend_infer_ranges_warmup()
1755 zend_bitset visited = worklist + worklist_len; in zend_infer_ranges_warmup()
1759 memset(worklist, 0, sizeof(zend_ulong) * worklist_len); in zend_infer_ranges_warmup()
1764 zend_check_inner_cycles(op_array, ssa, worklist, visited, j)) { in zend_infer_ranges_warmup()
1772 memset(worklist, 0, sizeof(zend_ulong) * worklist_len); in zend_infer_ranges_warmup()
1779 zend_bitset_incl(worklist, j); in zend_infer_ranges_warmup()
1786 WHILE_WORKLIST(worklist, worklist_len, j) { in zend_infer_ranges_warmup()
1843 free_alloca(worklist, use_heap); in zend_infer_ranges_warmup()
1849 zend_bitset worklist; in zend_infer_ranges() local
1857 worklist = do_alloca( in zend_infer_ranges()
1861 next_scc_var = (int*)((char*)worklist + ZEND_MM_ALIGNED_SIZE(sizeof(zend_ulong) * worklist_len)); in zend_infer_ranges()
1888 memset(worklist, 0, sizeof(zend_ulong) * worklist_len); in zend_infer_ranges()
1892 zend_bitset_incl(worklist, j); in zend_infer_ranges()
1902 zend_bitset_incl(worklist, j); in zend_infer_ranges()
1909 WHILE_WORKLIST(worklist, worklist_len, j) { in zend_infer_ranges()
1925 WHILE_WORKLIST(worklist, worklist_len, j) { in zend_infer_ranges()
1939 zend_bitset_incl(worklist, j); in zend_infer_ranges()
1943 WHILE_WORKLIST(worklist, worklist_len, j) { in zend_infer_ranges()
1959 free_alloca(worklist, use_heap); in zend_infer_ranges()
2011 add_usages(op_array, ssa, worklist, __var); \
2026 add_usages(op_array, ssa, worklist, var); \
2043 static void add_usages(const zend_op_array *op_array, zend_ssa *ssa, zend_bitset worklist, int var) in add_usages() argument
2048 zend_bitset_incl(worklist, p->ssa_var); in add_usages()
2059 zend_bitset_incl(worklist, op->result_def); in add_usages()
2062 zend_bitset_incl(worklist, op->op1_def); in add_usages()
2065 zend_bitset_incl(worklist, op->op2_def); in add_usages()
2070 zend_bitset_incl(worklist, op->result_def); in add_usages()
2073 zend_bitset_incl(worklist, op->op1_def); in add_usages()
2076 zend_bitset_incl(worklist, op->op2_def); in add_usages()
2082 zend_bitset_incl(worklist, op->result_def); in add_usages()
2085 zend_bitset_incl(worklist, op->op1_def); in add_usages()
2088 zend_bitset_incl(worklist, op->op2_def); in add_usages()
2507 zend_bitset worklist, in _zend_update_type_info() argument
3955 …_array *op_array, const zend_script *script, zend_ssa *ssa, zend_bitset worklist, zend_long optimi… in zend_infer_types_ex() argument
3966 while (!zend_bitset_empty(worklist, worklist_len)) { in zend_infer_types_ex()
3967 j = zend_bitset_first(worklist, worklist_len); in zend_infer_types_ex()
3968 zend_bitset_excl(worklist, j); in zend_infer_types_ex()
4031 …if (_zend_update_type_info(op_array, ssa, script, worklist, op_array->opcodes + i, ssa->ops + i, N… in zend_infer_types_ex()
4212 zend_bitset visited, worklist; in zend_type_narrowing() local
4219 worklist = visited + bitset_len; in zend_type_narrowing()
4221 zend_bitset_clear(worklist, bitset_len); in zend_type_narrowing()
4243 zend_bitset_union(worklist, visited, bitset_len); in zend_type_narrowing()
4253 if (zend_infer_types_ex(op_array, script, ssa, worklist, optimization_level) != SUCCESS) { in zend_type_narrowing()
4528 zend_bitset worklist; in zend_infer_types() local
4531 worklist = do_alloca(sizeof(zend_ulong) * zend_bitset_len(ssa_vars_count), use_heap); in zend_infer_types()
4532 memset(worklist, 0, sizeof(zend_ulong) * zend_bitset_len(ssa_vars_count)); in zend_infer_types()
4536 zend_bitset_incl(worklist, j); in zend_infer_types()
4539 if (zend_infer_types_ex(op_array, script, ssa, worklist, optimization_level) != SUCCESS) { in zend_infer_types()
4540 free_alloca(worklist, use_heap); in zend_infer_types()
4553 free_alloca(worklist, use_heap); in zend_infer_types()
4563 zend_bitset worklist; in zend_mark_cv_references() local
4566 worklist = do_alloca(sizeof(zend_ulong) * worklist_len, use_heap); in zend_mark_cv_references()
4567 memset(worklist, 0, sizeof(zend_ulong) * worklist_len); in zend_mark_cv_references()
4640 zend_bitset_incl(worklist, var); in zend_mark_cv_references()
4642 zend_bitset_incl(worklist, var); in zend_mark_cv_references()
4644 zend_bitset_incl(worklist, var); in zend_mark_cv_references()
4649 WHILE_WORKLIST(worklist, worklist_len, var) { in zend_mark_cv_references()
4657 zend_bitset_incl(worklist, p->ssa_var); in zend_mark_cv_references()
4674 zend_bitset_incl(worklist, op->op1_def); in zend_mark_cv_references()
4679 zend_bitset_incl(worklist, op->op2_def); in zend_mark_cv_references()
4684 zend_bitset_incl(worklist, op->result_def); in zend_mark_cv_references()
4691 free_alloca(worklist, use_heap); in zend_mark_cv_references()