Lines Matching refs:j
115 int j, changed; in zend_mark_reachable_blocks() local
122 for (j = 0; j < op_array->last_live_range; j++) { in zend_mark_reachable_blocks()
123 zend_live_range *live_range = &op_array->live_range[j]; in zend_mark_reachable_blocks()
165 for (j = 0; j < op_array->last_try_catch; j++) { in zend_mark_reachable_blocks()
168 b = blocks + block_map[op_array->try_catch_array[j].try_op]; in zend_mark_reachable_blocks()
172 if (op_array->try_catch_array[j].catch_op) { in zend_mark_reachable_blocks()
173 end = blocks + block_map[op_array->try_catch_array[j].catch_op]; in zend_mark_reachable_blocks()
176 op_array->try_catch_array[j].try_op = b->start; in zend_mark_reachable_blocks()
182 b = blocks + block_map[op_array->try_catch_array[j].try_op]; in zend_mark_reachable_blocks()
184 if (op_array->try_catch_array[j].finally_op) { in zend_mark_reachable_blocks()
185 end = blocks + block_map[op_array->try_catch_array[j].finally_op]; in zend_mark_reachable_blocks()
188 op_array->try_catch_array[j].try_op = op_array->try_catch_array[j].catch_op; in zend_mark_reachable_blocks()
190 …zend_mark_reachable(op_array->opcodes, cfg, blocks + block_map[op_array->try_catch_array[j].try_op… in zend_mark_reachable_blocks()
199 b = blocks + block_map[op_array->try_catch_array[j].try_op]; in zend_mark_reachable_blocks()
202 if (op_array->try_catch_array[j].catch_op) { in zend_mark_reachable_blocks()
203 b = blocks + block_map[op_array->try_catch_array[j].catch_op]; in zend_mark_reachable_blocks()
210 if (op_array->try_catch_array[j].finally_op) { in zend_mark_reachable_blocks()
211 b = blocks + block_map[op_array->try_catch_array[j].finally_op]; in zend_mark_reachable_blocks()
218 if (op_array->try_catch_array[j].finally_end) { in zend_mark_reachable_blocks()
219 b = blocks + block_map[op_array->try_catch_array[j].finally_end]; in zend_mark_reachable_blocks()
227 if (op_array->try_catch_array[j].catch_op) { in zend_mark_reachable_blocks()
228 …ZEND_ASSERT(!(blocks[block_map[op_array->try_catch_array[j].catch_op]].flags & ZEND_BB_REACHABLE)); in zend_mark_reachable_blocks()
230 if (op_array->try_catch_array[j].finally_op) { in zend_mark_reachable_blocks()
231 …ZEND_ASSERT(!(blocks[block_map[op_array->try_catch_array[j].finally_op]].flags & ZEND_BB_REACHABLE… in zend_mark_reachable_blocks()
233 if (op_array->try_catch_array[j].finally_end) { in zend_mark_reachable_blocks()
234 …ZEND_ASSERT(!(blocks[block_map[op_array->try_catch_array[j].finally_end]].flags & ZEND_BB_REACHABL… in zend_mark_reachable_blocks()
288 int j; in zend_build_cfg() local
457 for (j = 0; j < op_array->last_live_range; j++) { in zend_build_cfg()
458 BB_START(op_array->live_range[j].start); in zend_build_cfg()
459 BB_START(op_array->live_range[j].end); in zend_build_cfg()
464 for (j = 0; j < op_array->last_try_catch; j++) { in zend_build_cfg()
465 BB_START(op_array->try_catch_array[j].try_op); in zend_build_cfg()
466 if (op_array->try_catch_array[j].catch_op) { in zend_build_cfg()
467 BB_START(op_array->try_catch_array[j].catch_op); in zend_build_cfg()
469 if (op_array->try_catch_array[j].finally_op) { in zend_build_cfg()
470 BB_START(op_array->try_catch_array[j].finally_op); in zend_build_cfg()
472 if (op_array->try_catch_array[j].finally_end) { in zend_build_cfg()
473 BB_START(op_array->try_catch_array[j].finally_end); in zend_build_cfg()
509 for (j = 0; j < blocks_count; j++) { in zend_build_cfg()
510 zend_basic_block *block = &blocks[j]; in zend_build_cfg()
514 block->successors[0] = j + 1; in zend_build_cfg()
545 block->successors[1] = j + 1; in zend_build_cfg()
551 block->successors[1] = j + 1; in zend_build_cfg()
554 block->successors[0] = j + 1; in zend_build_cfg()
563 block->successors[1] = j + 1; in zend_build_cfg()
569 block->successors[1] = j + 1; in zend_build_cfg()
574 block->successors[1] = j + 1; in zend_build_cfg()
591 block->successors[s++] = j + 1; in zend_build_cfg()
596 block->successors[0] = j + 1; in zend_build_cfg()
612 int j, s, edges; in zend_cfg_build_predecessors() local
646 for (j = 0; j < cfg->blocks_count; j++) { in zend_cfg_build_predecessors()
647 if (blocks[j].flags & ZEND_BB_REACHABLE) { in zend_cfg_build_predecessors()
649 for (s = 0; s < blocks[j].successors_count; s++) { in zend_cfg_build_predecessors()
654 if (blocks[j].successors[p] == blocks[j].successors[s]) { in zend_cfg_build_predecessors()
660 zend_basic_block *b = blocks + blocks[j].successors[s]; in zend_cfg_build_predecessors()
662 predecessors[b->predecessor_offset + b->predecessors_count] = j; in zend_cfg_build_predecessors()
697 int j, k, changed; in zend_cfg_compute_dominators_tree() local
702 j = 0; in zend_cfg_compute_dominators_tree()
703 compute_postnum_recursive(postnum, &j, cfg, 0); in zend_cfg_compute_dominators_tree()
710 for (j = 1; j < blocks_count; j++) { in zend_cfg_compute_dominators_tree()
713 if ((blocks[j].flags & ZEND_BB_REACHABLE) == 0) { in zend_cfg_compute_dominators_tree()
716 for (k = 0; k < blocks[j].predecessors_count; k++) { in zend_cfg_compute_dominators_tree()
717 int pred = cfg->predecessors[blocks[j].predecessor_offset + k]; in zend_cfg_compute_dominators_tree()
733 if (idom >= 0 && blocks[j].idom != idom) { in zend_cfg_compute_dominators_tree()
734 blocks[j].idom = idom; in zend_cfg_compute_dominators_tree()
741 for (j = 1; j < blocks_count; j++) { in zend_cfg_compute_dominators_tree()
742 if ((blocks[j].flags & ZEND_BB_REACHABLE) == 0) { in zend_cfg_compute_dominators_tree()
745 if (blocks[j].idom >= 0) { in zend_cfg_compute_dominators_tree()
747 if (blocks[blocks[j].idom].children < 0 || in zend_cfg_compute_dominators_tree()
748 j < blocks[blocks[j].idom].children) { in zend_cfg_compute_dominators_tree()
749 blocks[j].next_child = blocks[blocks[j].idom].children; in zend_cfg_compute_dominators_tree()
750 blocks[blocks[j].idom].children = j; in zend_cfg_compute_dominators_tree()
752 int k = blocks[blocks[j].idom].children; in zend_cfg_compute_dominators_tree()
753 while (blocks[k].next_child >=0 && j > blocks[k].next_child) { in zend_cfg_compute_dominators_tree()
756 blocks[j].next_child = blocks[k].next_child; in zend_cfg_compute_dominators_tree()
757 blocks[k].next_child = j; in zend_cfg_compute_dominators_tree()
762 for (j = 0; j < blocks_count; j++) { in zend_cfg_compute_dominators_tree()
763 int idom = blocks[j].idom, level = 0; in zend_cfg_compute_dominators_tree()
764 if ((blocks[j].flags & ZEND_BB_REACHABLE) == 0) { in zend_cfg_compute_dominators_tree()
776 blocks[j].level = level; in zend_cfg_compute_dominators_tree()
808 int i, j, k, n; in zend_cfg_identify_loops() local
836 for (j = blocks[i].children; j >= 0; j = blocks[j].next_child) { in zend_cfg_identify_loops()
837 if (zend_worklist_push(&work, j)) { in zend_cfg_identify_loops()
842 for (j = 0; j < blocks[i].successors_count; j++) { in zend_cfg_identify_loops()
843 int succ = blocks[i].successors[j]; in zend_cfg_identify_loops()
870 for (j = 0; j < blocks[i].predecessors_count; j++) { in zend_cfg_identify_loops()
871 int pred = cfg->predecessors[blocks[i].predecessor_offset + j]; in zend_cfg_identify_loops()
896 j = zend_worklist_pop(&work); in zend_cfg_identify_loops()
897 while (blocks[j].loop_header >= 0) { in zend_cfg_identify_loops()
898 j = blocks[j].loop_header; in zend_cfg_identify_loops()
900 if (j != i) { in zend_cfg_identify_loops()
901 blocks[j].loop_header = i; in zend_cfg_identify_loops()
902 for (k = 0; k < blocks[j].predecessors_count; k++) { in zend_cfg_identify_loops()
903 zend_worklist_push(&work, cfg->predecessors[blocks[j].predecessor_offset + k]); in zend_cfg_identify_loops()