Lines Matching refs:defining_blocks
111 BasicBlock* bb, const std::vector<uint32_t>& defining_blocks) { in CreatePhiInstruction()
114 assert(bb_preds.size() == defining_blocks.size()); in CreatePhiInstruction()
117 GetOrBuildIncoming(defining_blocks[i])->result_id()); in CreatePhiInstruction()
185 const std::vector<uint32_t>& defining_blocks = in GetOrBuildIncoming() local
192 if (defining_blocks.size() > 1 || bb_id == base_->merge_block_id_) { in GetOrBuildIncoming()
193 if (defining_blocks.size() > 1) { in GetOrBuildIncoming()
194 incoming_phi = CreatePhiInstruction(bb, defining_blocks); in GetOrBuildIncoming()
198 CreatePhiInstruction(bb, *GetOrBuildIncoming(defining_blocks[0])); in GetOrBuildIncoming()
201 incoming_phi = GetOrBuildIncoming(defining_blocks[0]); in GetOrBuildIncoming()
221 std::vector<uint32_t>& defining_blocks = bb_to_defining_blocks_[bb_id]; in GetDefiningBlocks() local
223 if (defining_blocks.size()) return defining_blocks; in GetDefiningBlocks()
228 defining_blocks.push_back(e_bb->id()); in GetDefiningBlocks()
229 return defining_blocks; in GetDefiningBlocks()
239 defining_blocks.push_back(pred_blocks[0]); in GetDefiningBlocks()
241 defining_blocks.push_back(pred_id); in GetDefiningBlocks()
243 assert(defining_blocks.size()); in GetDefiningBlocks()
244 if (std::all_of(defining_blocks.begin(), defining_blocks.end(), in GetDefiningBlocks()
245 [&defining_blocks](uint32_t id) { in GetDefiningBlocks()
246 return id == defining_blocks[0]; in GetDefiningBlocks()
249 defining_blocks.resize(1); in GetDefiningBlocks()
252 return defining_blocks; in GetDefiningBlocks()