Lines Matching refs:blocks

28 static zend_bool dominates(const zend_basic_block *blocks, int a, int b) {  in dominates()  argument
29 while (blocks[b].level > blocks[a].level) { in dominates()
30 b = blocks[b].idom; in dominates()
40 if (predecessor != exclude && !dominates(cfg->blocks, check, predecessor)) { in dominates_other_predecessors()
59 from_block = &ssa->cfg.blocks[from]; in needs_pi()
65 to_block = &ssa->cfg.blocks[to]; in needs_pi()
90 ZEND_MM_ALIGNED_SIZE(sizeof(int) * ssa->cfg.blocks[to].predecessors_count) + in add_pi()
91 sizeof(void*) * ssa->cfg.blocks[to].predecessors_count); in add_pi()
93 memset(phi->sources, 0xff, sizeof(int) * ssa->cfg.blocks[to].predecessors_count); in add_pi()
94 …i**)(((char*)phi->sources) + ZEND_MM_ALIGNED_SIZE(sizeof(int) * ssa->cfg.blocks[to].predecessors_c… in add_pi()
99 phi->next = ssa->blocks[to].phis; in add_pi()
100 ssa->blocks[to].phis = phi; in add_pi()
110 if (ssa->cfg.blocks[to].predecessors_count > 1) { in add_pi()
240 zend_basic_block *blocks = ssa->cfg.blocks; in place_essa_pis() local
244 zend_op *opline = op_array->opcodes + blocks[j].start + blocks[j].len - 1; in place_essa_pis()
248 if ((blocks[j].flags & ZEND_BB_REACHABLE) == 0 || blocks[j].len == 0) { in place_essa_pis()
257 bf = blocks[j].successors[0]; in place_essa_pis()
258 bt = blocks[j].successors[1]; in place_essa_pis()
261 bt = blocks[j].successors[0]; in place_essa_pis()
262 bf = blocks[j].successors[1]; in place_essa_pis()
529 zend_basic_block *blocks = ssa->cfg.blocks; in zend_ssa_rename() local
530 zend_ssa_block *ssa_blocks = ssa->blocks; in zend_ssa_rename()
539 if (blocks[n].next_child >= 0) { in zend_ssa_rename()
559 opline = op_array->opcodes + blocks[n].start; in zend_ssa_rename()
560 end = opline + blocks[n].len; in zend_ssa_rename()
800 for (i = 0; i < blocks[n].successors_count; i++) { in zend_ssa_rename()
801 int succ = blocks[n].successors[i]; in zend_ssa_rename()
814 for (j = 0; j < blocks[succ].predecessors_count; j++) { in zend_ssa_rename()
823 for (j = 0; j < blocks[succ].predecessors_count; j++) in zend_ssa_rename()
824 if (ssa->cfg.predecessors[blocks[succ].predecessor_offset + j] == n) { in zend_ssa_rename()
827 ZEND_ASSERT(j < blocks[succ].predecessors_count); in zend_ssa_rename()
836 for (j = 0; j < blocks[succ].predecessors_count; j++) { in zend_ssa_rename()
837 if (ssa->cfg.predecessors[blocks[succ].predecessor_offset + j] == n) { in zend_ssa_rename()
841 ZEND_ASSERT(j < blocks[succ].predecessors_count); in zend_ssa_rename()
852 j = blocks[n].children; in zend_ssa_rename()
857 j = blocks[j].next_child; in zend_ssa_rename()
870 zend_basic_block *blocks = ssa->cfg.blocks; in zend_build_ssa() local
888 ssa->blocks = ssa_blocks; in zend_build_ssa()
925 if ((blocks[j].flags & ZEND_BB_REACHABLE) == 0) { in zend_build_ssa()
928 if (blocks[j].predecessors_count > 1) { in zend_build_ssa()
929 if (blocks[j].flags & ZEND_BB_IRREDUCIBLE_LOOP) { in zend_build_ssa()
935 for (k = 0; k < blocks[j].predecessors_count; k++) { in zend_build_ssa()
936 i = ssa->cfg.predecessors[blocks[j].predecessor_offset + k]; in zend_build_ssa()
937 while (i != -1 && i != blocks[j].idom) { in zend_build_ssa()
940 i = blocks[i].idom; in zend_build_ssa()
960 if ((blocks[j].flags & ZEND_BB_REACHABLE) == 0) { in zend_build_ssa()
967 ZEND_MM_ALIGNED_SIZE(sizeof(int) * blocks[j].predecessors_count) + in zend_build_ssa()
968 sizeof(void*) * blocks[j].predecessors_count); in zend_build_ssa()
971 memset(phi->sources, 0xff, sizeof(int) * blocks[j].predecessors_count); in zend_build_ssa()
972 …i**)(((char*)phi->sources) + ZEND_MM_ALIGNED_SIZE(sizeof(int) * ssa->cfg.blocks[j].predecessors_co… in zend_build_ssa()
1073 zend_ssa_phi *phi = ssa->blocks[i].phis; in zend_ssa_compute_use_def_chains()
1104 for (j = 0; j < ssa->cfg.blocks[i].predecessors_count; j++) { in zend_ssa_compute_use_def_chains()
1220 for (j = 0; j < ssa->cfg.blocks[p->block].predecessors_count; j++) { in zend_ssa_next_use_phi_ptr()
1256 zend_ssa_block *block = &ssa->blocks[phi->block]; in zend_ssa_remove_phi_from_block()
1363 zend_basic_block *next_block = &ssa->cfg.blocks[to]; in zend_ssa_remove_predecessor()
1364 zend_ssa_block *next_ssa_block = &ssa->blocks[to]; in zend_ssa_remove_predecessor()
1409 zend_basic_block *block = &ssa->cfg.blocks[i]; in zend_ssa_remove_block()
1410 zend_ssa_block *ssa_block = &ssa->blocks[i]; in zend_ssa_remove_block()
1444 zend_basic_block *prev_block = &ssa->cfg.blocks[predecessors[j]]; in zend_ssa_remove_block()
1463 j = ssa->cfg.blocks[block->idom].children; in zend_ssa_remove_block()
1465 ssa->cfg.blocks[block->idom].children = block->next_child; in zend_ssa_remove_block()
1467 while (ssa->cfg.blocks[j].next_child >= 0) { in zend_ssa_remove_block()
1468 if (ssa->cfg.blocks[j].next_child == i) { in zend_ssa_remove_block()
1469 ssa->cfg.blocks[j].next_child = block->next_child; in zend_ssa_remove_block()
1472 j = ssa->cfg.blocks[j].next_child; in zend_ssa_remove_block()
1571 for (j = 0; j < ssa->cfg.blocks[phi->block].predecessors_count; j++) { in zend_ssa_rename_var_uses()
1578 for (j = 0; j < ssa->cfg.blocks[phi->block].predecessors_count; j++) { in zend_ssa_rename_var_uses()