Lines Matching refs:cfg
35 const zend_cfg *cfg, const zend_dfg *dfg, const zend_basic_block *block, in will_rejoin() argument
39 int predecessor = cfg->predecessors[block->predecessor_offset + i]; in will_rejoin()
53 if (dominates(cfg->blocks, other_successor, predecessor)) { in will_rejoin()
72 from_block = &ssa->cfg.blocks[from]; in needs_pi()
78 to_block = &ssa->cfg.blocks[to]; in needs_pi()
88 return !will_rejoin(&ssa->cfg, dfg, to_block, other_successor, from, var); in needs_pi()
103 ZEND_MM_ALIGNED_SIZE(sizeof(int) * ssa->cfg.blocks[to].predecessors_count) + in add_pi()
104 sizeof(void*) * ssa->cfg.blocks[to].predecessors_count); in add_pi()
106 memset(phi->sources, 0xff, sizeof(int) * ssa->cfg.blocks[to].predecessors_count); in add_pi()
107 …ssa_phi**)(((char*)phi->sources) + ZEND_MM_ALIGNED_SIZE(sizeof(int) * ssa->cfg.blocks[to].predeces… in add_pi()
123 if (ssa->cfg.blocks[to].predecessors_count > 1) { in add_pi()
244 zend_basic_block *blocks = ssa->cfg.blocks; in place_essa_pis()
245 int j, blocks_count = ssa->cfg.blocks_count; in place_essa_pis()
792 zend_basic_block *blocks = ssa->cfg.blocks; in zend_ssa_rename()
859 if (ssa->cfg.predecessors[blocks[succ].predecessor_offset + j] == n) { in zend_ssa_rename()
876 if (ssa->cfg.predecessors[blocks[succ].predecessor_offset + j] == n) { in zend_ssa_rename()
909 zend_basic_block *blocks = ssa->cfg.blocks; in zend_build_ssa()
911 int blocks_count = ssa->cfg.blocks_count; in zend_build_ssa()
938 if (zend_build_dfg(op_array, &ssa->cfg, &dfg, build_flags) != SUCCESS) { in zend_build_ssa()
944 zend_dump_dfg(op_array, &ssa->cfg, &dfg); in zend_build_ssa()
974 i = ssa->cfg.predecessors[blocks[j].predecessor_offset + k]; in zend_build_ssa()
1010 …ssa_phi**)(((char*)phi->sources) + ZEND_MM_ALIGNED_SIZE(sizeof(int) * ssa->cfg.blocks[j].predecess… in zend_build_ssa()
1110 for (i = 0; i < ssa->cfg.blocks_count; i++) { in zend_ssa_compute_use_def_chains()
1142 for (j = 0; j < ssa->cfg.blocks[i].predecessors_count; j++) { in zend_ssa_compute_use_def_chains()
1162 if ((ssa->cfg.flags & ZEND_FUNC_INDIRECT_VAR_ACCESS)) { in zend_ssa_compute_use_def_chains()
1256 for (j = 0; j < ssa->cfg.blocks[p->block].predecessors_count; j++) { in zend_ssa_next_use_phi_ptr()
1395 zend_basic_block *next_block = &ssa->cfg.blocks[to]; in zend_ssa_remove_predecessor()
1402 int *predecessors = &ssa->cfg.predecessors[next_block->predecessor_offset]; in zend_ssa_remove_predecessor()
1433 predecessors = &ssa->cfg.predecessors[next_block->predecessor_offset + pred_offset]; in zend_ssa_remove_predecessor()
1441 zend_basic_block *block = &ssa->cfg.blocks[i]; in zend_ssa_remove_block()
1470 zend_basic_block *block = &ssa->cfg.blocks[i]; in zend_ssa_remove_block_from_cfg()
1479 predecessors = &ssa->cfg.predecessors[block->predecessor_offset]; in zend_ssa_remove_block_from_cfg()
1482 zend_basic_block *prev_block = &ssa->cfg.blocks[predecessors[j]]; in zend_ssa_remove_block_from_cfg()
1501 j = ssa->cfg.blocks[block->idom].children; in zend_ssa_remove_block_from_cfg()
1503 ssa->cfg.blocks[block->idom].children = block->next_child; in zend_ssa_remove_block_from_cfg()
1505 while (ssa->cfg.blocks[j].next_child >= 0) { in zend_ssa_remove_block_from_cfg()
1506 if (ssa->cfg.blocks[j].next_child == i) { in zend_ssa_remove_block_from_cfg()
1507 ssa->cfg.blocks[j].next_child = block->next_child; in zend_ssa_remove_block_from_cfg()
1510 j = ssa->cfg.blocks[j].next_child; in zend_ssa_remove_block_from_cfg()
1609 for (j = 0; j < ssa->cfg.blocks[phi->block].predecessors_count; j++) { in zend_ssa_rename_var_uses()
1616 for (j = 0; j < ssa->cfg.blocks[phi->block].predecessors_count; j++) { in zend_ssa_rename_var_uses()