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
455 for (j = 0; j < op_array->last_live_range; j++) { in zend_build_cfg()
456 BB_START(op_array->live_range[j].start); in zend_build_cfg()
457 BB_START(op_array->live_range[j].end); in zend_build_cfg()
462 for (j = 0; j < op_array->last_try_catch; j++) { in zend_build_cfg()
463 BB_START(op_array->try_catch_array[j].try_op); in zend_build_cfg()
464 if (op_array->try_catch_array[j].catch_op) { in zend_build_cfg()
465 BB_START(op_array->try_catch_array[j].catch_op); in zend_build_cfg()
467 if (op_array->try_catch_array[j].finally_op) { in zend_build_cfg()
468 BB_START(op_array->try_catch_array[j].finally_op); in zend_build_cfg()
470 if (op_array->try_catch_array[j].finally_end) { in zend_build_cfg()
471 BB_START(op_array->try_catch_array[j].finally_end); in zend_build_cfg()
507 for (j = 0; j < blocks_count; j++) { in zend_build_cfg()
508 zend_basic_block *block = &blocks[j]; in zend_build_cfg()
512 block->successors[0] = j + 1; in zend_build_cfg()
543 block->successors[1] = j + 1; in zend_build_cfg()
549 block->successors[1] = j + 1; in zend_build_cfg()
552 block->successors[0] = j + 1; in zend_build_cfg()
561 block->successors[1] = j + 1; in zend_build_cfg()
567 block->successors[1] = j + 1; in zend_build_cfg()
572 block->successors[1] = j + 1; in zend_build_cfg()
589 block->successors[s++] = j + 1; in zend_build_cfg()
594 block->successors[0] = j + 1; in zend_build_cfg()
615 int j, s, edges; in zend_cfg_build_predecessors() local
649 for (j = 0; j < cfg->blocks_count; j++) { in zend_cfg_build_predecessors()
650 if (blocks[j].flags & ZEND_BB_REACHABLE) { in zend_cfg_build_predecessors()
652 for (s = 0; s < blocks[j].successors_count; s++) { in zend_cfg_build_predecessors()
657 if (blocks[j].successors[p] == blocks[j].successors[s]) { in zend_cfg_build_predecessors()
663 zend_basic_block *b = blocks + blocks[j].successors[s]; in zend_cfg_build_predecessors()
665 predecessors[b->predecessor_offset + b->predecessors_count] = j; in zend_cfg_build_predecessors()
700 int j, k, changed; in zend_cfg_compute_dominators_tree() local
705 j = 0; in zend_cfg_compute_dominators_tree()
706 compute_postnum_recursive(postnum, &j, cfg, 0); in zend_cfg_compute_dominators_tree()
713 for (j = 1; j < blocks_count; j++) { in zend_cfg_compute_dominators_tree()
716 if ((blocks[j].flags & ZEND_BB_REACHABLE) == 0) { in zend_cfg_compute_dominators_tree()
719 for (k = 0; k < blocks[j].predecessors_count; k++) { in zend_cfg_compute_dominators_tree()
720 int pred = cfg->predecessors[blocks[j].predecessor_offset + k]; in zend_cfg_compute_dominators_tree()
736 if (idom >= 0 && blocks[j].idom != idom) { in zend_cfg_compute_dominators_tree()
737 blocks[j].idom = idom; in zend_cfg_compute_dominators_tree()
744 for (j = 1; j < blocks_count; j++) { in zend_cfg_compute_dominators_tree()
745 if ((blocks[j].flags & ZEND_BB_REACHABLE) == 0) { in zend_cfg_compute_dominators_tree()
748 if (blocks[j].idom >= 0) { in zend_cfg_compute_dominators_tree()
750 if (blocks[blocks[j].idom].children < 0 || in zend_cfg_compute_dominators_tree()
751 j < blocks[blocks[j].idom].children) { in zend_cfg_compute_dominators_tree()
752 blocks[j].next_child = blocks[blocks[j].idom].children; in zend_cfg_compute_dominators_tree()
753 blocks[blocks[j].idom].children = j; in zend_cfg_compute_dominators_tree()
755 int k = blocks[blocks[j].idom].children; in zend_cfg_compute_dominators_tree()
756 while (blocks[k].next_child >=0 && j > blocks[k].next_child) { in zend_cfg_compute_dominators_tree()
759 blocks[j].next_child = blocks[k].next_child; in zend_cfg_compute_dominators_tree()
760 blocks[k].next_child = j; in zend_cfg_compute_dominators_tree()
765 for (j = 0; j < blocks_count; j++) { in zend_cfg_compute_dominators_tree()
766 int idom = blocks[j].idom, level = 0; in zend_cfg_compute_dominators_tree()
767 if ((blocks[j].flags & ZEND_BB_REACHABLE) == 0) { in zend_cfg_compute_dominators_tree()
779 blocks[j].level = level; in zend_cfg_compute_dominators_tree()
811 int i, j, k, n; in zend_cfg_identify_loops() local
839 for (j = blocks[i].children; j >= 0; j = blocks[j].next_child) { in zend_cfg_identify_loops()
840 if (zend_worklist_push(&work, j)) { in zend_cfg_identify_loops()
845 for (j = 0; j < blocks[i].successors_count; j++) { in zend_cfg_identify_loops()
846 int succ = blocks[i].successors[j]; in zend_cfg_identify_loops()
873 for (j = 0; j < blocks[i].predecessors_count; j++) { in zend_cfg_identify_loops()
874 int pred = cfg->predecessors[blocks[i].predecessor_offset + j]; in zend_cfg_identify_loops()
899 j = zend_worklist_pop(&work); in zend_cfg_identify_loops()
900 while (blocks[j].loop_header >= 0) { in zend_cfg_identify_loops()
901 j = blocks[j].loop_header; in zend_cfg_identify_loops()
903 if (j != i) { in zend_cfg_identify_loops()
904 blocks[j].loop_header = i; in zend_cfg_identify_loops()
905 for (k = 0; k < blocks[j].predecessors_count; k++) { in zend_cfg_identify_loops()
906 zend_worklist_push(&work, cfg->predecessors[blocks[j].predecessor_offset + k]); in zend_cfg_identify_loops()