/php-src/Zend/Optimizer/ |
H A D | zend_worklist.h | 87 zend_worklist_stack_prepare(arena, &worklist->stack, len); in zend_worklist_prepare() 90 static inline int zend_worklist_len(const zend_worklist *worklist) in zend_worklist_len() argument 92 return worklist->stack.len; in zend_worklist_len() 97 ZEND_ASSERT(i >= 0 && i < worklist->stack.capacity); in zend_worklist_push() 99 if (zend_bitset_in(worklist->visited, i)) { in zend_worklist_push() 103 zend_bitset_incl(worklist->visited, i); in zend_worklist_push() 104 zend_worklist_stack_push(&worklist->stack, i); in zend_worklist_push() 108 static inline int zend_worklist_peek(const zend_worklist *worklist) in zend_worklist_peek() argument 110 return zend_worklist_stack_peek(&worklist->stack); in zend_worklist_peek() 113 static inline int zend_worklist_pop(zend_worklist *worklist) in zend_worklist_pop() argument [all …]
|
H A D | zend_dfg.c | 291 zend_bitset worklist; in zend_build_dfg() local 293 worklist = ZEND_BITSET_ALLOCA(worklist_len, use_heap); in zend_build_dfg() 294 memset(worklist, 0, worklist_len * ZEND_BITSET_ELM_SIZE); in zend_build_dfg() 296 zend_bitset_incl(worklist, j); in zend_build_dfg() 298 while (!zend_bitset_empty(worklist, worklist_len)) { in zend_build_dfg() 301 j = zend_bitset_last(worklist, worklist_len); in zend_build_dfg() 302 zend_bitset_excl(worklist, j); in zend_build_dfg() 323 zend_bitset_incl(worklist, predecessors[k]); in zend_build_dfg() 329 free_alloca(worklist, use_heap); in zend_build_dfg()
|
H A D | zend_inference.c | 69 zend_bitset_excl(worklist, i); \ 495 zend_bitset worklist; in zend_ssa_find_false_dependencies() local 513 zend_bitset_incl(worklist, i); in zend_ssa_find_false_dependencies() 541 free_alloca(worklist, use_heap); in zend_ssa_find_false_dependencies() 1718 zend_bitset_incl(worklist, var); in zend_check_inner_cycles() 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() 4436 zend_bitset visited, worklist; in zend_type_narrowing() local 4709 zend_bitset worklist; in zend_infer_types() local [all …]
|
/php-src/ext/opcache/jit/ir/ |
H A D | ir_sccp.c | 147 ir_bitqueue_add(worklist, input); in ir_sccp_meet_phi() 435 ir_bitqueue_add(worklist, use); in ir_sccp_replace_insn() 491 ir_bitqueue_add(worklist, use); in ir_sccp_replace_insn2() 566 ir_bitqueue_add(worklist, use); in ir_sccp_fold2() 1083 ir_bitqueue_add(worklist, ref); in ir_ext_ref() 1097 ir_bitqueue_add(worklist, ref); in ir_ext_ref() 2163 ir_bitqueue worklist, worklist2; in ir_sccp() local 2171 worklist.pos = 0; in ir_sccp() 2172 ir_bitset_incl(worklist.set, 1); in ir_sccp() 2470 ir_bitqueue_add(&worklist, i); in ir_sccp() [all …]
|
H A D | ir_cfg.c | 20 ir_worklist_push(worklist, use); in _ir_add_successors() 27 ir_worklist_push(worklist, use); in _ir_add_successors() 30 ir_worklist_push(worklist, use); in _ir_add_successors() 51 ir_worklist_push(worklist, ref); in _ir_add_predecessors() 65 ir_worklist worklist; in ir_build_cfg() local 273 ir_worklist_clear(&worklist); in ir_build_cfg() 296 ir_worklist_free(&worklist); in ir_build_cfg() 643 ir_list worklist; in ir_build_dominators_tree() local 759 ir_list_free(&worklist); in ir_build_dominators_tree() 764 ir_list_free(&worklist); in ir_build_dominators_tree() [all …]
|
H A D | ir_gcm.c | 159 ir_list worklist; member 171 ir_list_push(&data->worklist, i); in _push_predecessors() 271 while (ir_list_len(&data->worklist)) { in ir_split_partially_dead_node() 272 i = ir_list_pop(&data->worklist); in ir_split_partially_dead_node() 279 ir_list_clear(&data->worklist); in ir_split_partially_dead_node() 701 ir_list_init(&data.worklist, ctx->cfg_blocks_count + 1); in ir_gcm() 716 ir_list_free(&data.worklist); in ir_gcm()
|
H A D | ir_ra.c | 3811 ir_worklist worklist; in needs_spill_reload() local 3815 ir_worklist_init(&worklist, ctx->cfg_blocks_count + 1); in needs_spill_reload() 3816 ir_worklist_push(&worklist, b0); in needs_spill_reload() 3817 while (ir_worklist_len(&worklist) != 0) { in needs_spill_reload() 3818 b = ir_worklist_pop(&worklist); in needs_spill_reload() 3821 ir_worklist_free(&worklist); in needs_spill_reload() 3830 ir_worklist_free(&worklist); in needs_spill_reload() 3833 ir_worklist_push(&worklist, b); in needs_spill_reload() 3837 ir_worklist_free(&worklist); in needs_spill_reload()
|
/php-src/ext/dom/ |
H A D | element.c | 493 dom_deep_ns_redef_item *worklist = emalloc(sizeof(dom_deep_ns_redef_item) * worklist_capacity); in dom_deep_ns_redef() local 494 worklist[0].current_node = node; in dom_deep_ns_redef() 495 worklist[0].defined_ns = NULL; in dom_deep_ns_redef() 500 dom_deep_ns_redef_item *current_worklist_item = &worklist[worklist_size]; in dom_deep_ns_redef() 530 worklist = erealloc(worklist, sizeof(dom_deep_ns_redef_item) * worklist_capacity); in dom_deep_ns_redef() 532 worklist[worklist_size].current_node = child; in dom_deep_ns_redef() 533 worklist[worklist_size].defined_ns = defined_ns; in dom_deep_ns_redef() 539 efree(worklist); in dom_deep_ns_redef()
|
/php-src/ext/opcache/jit/ |
H A D | zend_jit.c | 1311 zend_worklist worklist; in zend_jit_compute_post_order() local 1314 ZEND_WORKLIST_ALLOCA(&worklist, cfg->blocks_count, use_heap); in zend_jit_compute_post_order() 1315 zend_worklist_push(&worklist, start); in zend_jit_compute_post_order() 1317 while (zend_worklist_len(&worklist) != 0) { in zend_jit_compute_post_order() 1319 b = zend_worklist_peek(&worklist); in zend_jit_compute_post_order() 1327 } else if (zend_worklist_push(&worklist, *p)) { in zend_jit_compute_post_order() 1334 zend_worklist_pop(&worklist); in zend_jit_compute_post_order() 1337 ZEND_WORKLIST_FREE_ALLOCA(&worklist, use_heap); in zend_jit_compute_post_order()
|
H A D | zend_jit_trace.c | 3946 zend_worklist worklist; in zend_jit_find_ssa_var() local 3984 ZEND_WORKLIST_ALLOCA(&worklist, ssa->cfg.blocks_count, use_heap); in zend_jit_find_ssa_var() 3988 zend_worklist_push(&worklist, b); in zend_jit_find_ssa_var() 3991 while (zend_worklist_len(&worklist) != 0) { in zend_jit_find_ssa_var() 3992 b = zend_worklist_pop(&worklist); in zend_jit_find_ssa_var() 4029 zend_worklist_push(&worklist, b); in zend_jit_find_ssa_var() 4035 ZEND_WORKLIST_FREE_ALLOCA(&worklist, use_heap); in zend_jit_find_ssa_var()
|
H A D | zend_jit_ir.c | 17497 zend_worklist worklist; local 17508 ZEND_WORKLIST_ALLOCA(&worklist, ssa->cfg.blocks_count, use_heap); 17515 zend_worklist_push(&worklist, use_block); 17530 zend_worklist_push(&worklist, use_block); 17538 while (zend_worklist_len(&worklist) != 0) { 17539 b = zend_worklist_pop(&worklist); 17548 zend_worklist_push(&worklist, b); 17553 ZEND_WORKLIST_FREE_ALLOCA(&worklist, use_heap);
|