Lines Matching refs:blocks_count
206 for (b = blocks; b < blocks + cfg->blocks_count; b++) { in zend_mark_reachable_blocks()
235 for (i = 0; i < cfg->blocks_count; i++) { in zend_cfg_remark_reachable_blocks()
244 for (i = 0; i < cfg->blocks_count; i++) { in zend_cfg_remark_reachable_blocks()
266 if (!block_map[i]) { blocks_count++;} \
277 int blocks_count = 0; in zend_build_cfg() local
462 blocks_count += extra_entry_block; in zend_build_cfg()
463 cfg->blocks_count = blocks_count; in zend_build_cfg()
466 cfg->blocks = blocks = zend_arena_calloc(arena, sizeof(zend_basic_block), blocks_count); in zend_build_cfg()
468 blocks_count = -1; in zend_build_cfg()
474 blocks_count++; in zend_build_cfg()
479 if (blocks_count >= 0) { in zend_build_cfg()
480 blocks[blocks_count].len = i - blocks[blocks_count].start; in zend_build_cfg()
482 blocks_count++; in zend_build_cfg()
483 initialize_block(&blocks[blocks_count]); in zend_build_cfg()
484 blocks[blocks_count].start = i; in zend_build_cfg()
486 block_map[i] = blocks_count; in zend_build_cfg()
489 blocks[blocks_count].len = i - blocks[blocks_count].start; in zend_build_cfg()
490 blocks_count++; in zend_build_cfg()
493 for (j = 0; j < blocks_count; j++) { in zend_build_cfg()
595 zend_basic_block *end = blocks + cfg->blocks_count; in zend_cfg_build_predecessors()
626 for (j = 0; j < cfg->blocks_count; j++) { in zend_cfg_build_predecessors()
674 int blocks_count = cfg->blocks_count; in zend_cfg_compute_dominators_tree() local
677 if (cfg->blocks_count == 1) { in zend_cfg_compute_dominators_tree()
683 int *postnum = do_alloca(sizeof(int) * cfg->blocks_count, use_heap); in zend_cfg_compute_dominators_tree()
684 memset(postnum, -1, sizeof(int) * cfg->blocks_count); in zend_cfg_compute_dominators_tree()
693 for (j = 1; j < blocks_count; j++) { in zend_cfg_compute_dominators_tree()
722 for (j = 1; j < blocks_count; j++) { in zend_cfg_compute_dominators_tree()
743 for (j = 0; j < blocks_count; j++) { in zend_cfg_compute_dominators_tree()
785 if (cfg->blocks_count == 1) { in zend_cfg_identify_loops()
790 ZEND_WORKLIST_ALLOCA(&work, cfg->blocks_count, list_use_heap); in zend_cfg_identify_loops()
794 entry_times = do_alloca(3 * sizeof(int) * cfg->blocks_count, tree_use_heap); in zend_cfg_identify_loops()
795 exit_times = entry_times + cfg->blocks_count; in zend_cfg_identify_loops()
796 sorted_blocks = exit_times + cfg->blocks_count; in zend_cfg_identify_loops()
797 memset(entry_times, -1, 2 * sizeof(int) * cfg->blocks_count); in zend_cfg_identify_loops()
865 zend_bitset_clear(work.visited, zend_bitset_len(cfg->blocks_count)); in zend_cfg_identify_loops()