Home
last modified time | relevance | path

Searched refs:merge_block_id (Results 1 – 25 of 60) sorted by relevance

123

/third_party/spirv-tools/source/reduce/
Dstructured_loop_to_selection_reduction_opportunity_finder.cpp35 auto merge_block_id = block.MergeBlockIdIfAny(); in GetAvailableOpportunities() local
36 if (merge_block_id) { in GetAvailableOpportunities()
37 merge_block_ids.insert(merge_block_id); in GetAvailableOpportunities()
70 auto merge_block_id = in GetAvailableOpportunities() local
73 merge_block_id)) { in GetAvailableOpportunities()
82 merge_block_id, block.id())) { in GetAvailableOpportunities()
Dremove_selection_reduction_opportunity_finder.cpp40 uint32_t merge_block_id = in GetAvailableOpportunities() local
44 merge_and_continue_blocks_from_loops.insert(merge_block_id); in GetAvailableOpportunities()
117 uint32_t merge_block_id = in CanOpSelectionMergeBeRemoved() local
120 context->cfg()->preds(merge_block_id)) { in CanOpSelectionMergeBeRemoved()
126 [&found_divergent_successor, merge_block_id, in CanOpSelectionMergeBeRemoved()
130 if (successor_id != merge_block_id && in CanOpSelectionMergeBeRemoved()
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/reduce/
Dstructured_loop_to_selection_reduction_opportunity_finder.cpp35 auto merge_block_id = block.MergeBlockIdIfAny(); in GetAvailableOpportunities() local
36 if (merge_block_id) { in GetAvailableOpportunities()
37 merge_block_ids.insert(merge_block_id); in GetAvailableOpportunities()
70 auto merge_block_id = in GetAvailableOpportunities() local
73 merge_block_id)) { in GetAvailableOpportunities()
82 merge_block_id, block.id())) { in GetAvailableOpportunities()
Dremove_selection_reduction_opportunity_finder.cpp40 uint32_t merge_block_id = in GetAvailableOpportunities() local
44 merge_and_continue_blocks_from_loops.insert(merge_block_id); in GetAvailableOpportunities()
117 uint32_t merge_block_id = in CanOpSelectionMergeBeRemoved() local
120 context->cfg()->preds(merge_block_id)) { in CanOpSelectionMergeBeRemoved()
126 [&found_divergent_successor, merge_block_id, in CanOpSelectionMergeBeRemoved()
130 if (successor_id != merge_block_id && in CanOpSelectionMergeBeRemoved()
/third_party/skia/third_party/externals/spirv-tools/source/reduce/
Dstructured_loop_to_selection_reduction_opportunity_finder.cpp35 auto merge_block_id = block.MergeBlockIdIfAny(); in GetAvailableOpportunities() local
36 if (merge_block_id) { in GetAvailableOpportunities()
37 merge_block_ids.insert(merge_block_id); in GetAvailableOpportunities()
70 auto merge_block_id = in GetAvailableOpportunities() local
73 merge_block_id)) { in GetAvailableOpportunities()
82 merge_block_id, block.id())) { in GetAvailableOpportunities()
Dremove_selection_reduction_opportunity_finder.cpp40 uint32_t merge_block_id = in GetAvailableOpportunities() local
44 merge_and_continue_blocks_from_loops.insert(merge_block_id); in GetAvailableOpportunities()
117 uint32_t merge_block_id = in CanOpSelectionMergeBeRemoved() local
120 context->cfg()->preds(merge_block_id)) { in CanOpSelectionMergeBeRemoved()
126 [&found_divergent_successor, merge_block_id, in CanOpSelectionMergeBeRemoved()
130 if (successor_id != merge_block_id && in CanOpSelectionMergeBeRemoved()
/third_party/skia/third_party/externals/spirv-tools/source/fuzz/
Dtransformation_merge_function_returns.cpp229 uint32_t merge_block_id = in Apply() local
232 while (merge_block_id != 0 && in Apply()
233 !merge_blocks_to_returning_predecessors.count(merge_block_id)) { in Apply()
235 merge_block_id, std::map<uint32_t, std::pair<uint32_t, uint32_t>>()); in Apply()
236 merge_block_id = ir_context->GetStructuredCFGAnalysis()->LoopMergeBlock( in Apply()
237 merge_block_id); in Apply()
271 uint32_t merge_block_id = in Apply() local
277 if (merge_block_id != 0) { in Apply()
278 merge_blocks_to_returning_predecessors[merge_block_id].emplace( in Apply()
284 merge_block_id = message_.outer_return_id(); in Apply()
[all …]
Dtransformation_propagate_instruction_down.cpp111 if (auto merge_block_id = GetOpPhiBlockId( in Apply() local
115 for (auto predecessor_id : ir_context->cfg()->preds(merge_block_id)) { in Apply()
144 ->block(merge_block_id) in Apply()
527 auto merge_block_id = in GetOpPhiBlockId() local
531 if (!merge_block_id) { in GetOpPhiBlockId()
540 if (!ir_context->IsReachable(*ir_context->cfg()->block(merge_block_id)) || in GetOpPhiBlockId()
541 !dominator_analysis->Dominates(block_id, merge_block_id)) { in GetOpPhiBlockId()
547 if (successor_ids.count(merge_block_id)) { in GetOpPhiBlockId()
553 assert(!ir_context->cfg()->preds(merge_block_id).empty() && in GetOpPhiBlockId()
555 for (auto predecessor_id : ir_context->cfg()->preds(merge_block_id)) { in GetOpPhiBlockId()
[all …]
Dtransformation_flatten_conditional_branch.cpp106 for (uint32_t id : {inst_to_info.second.merge_block_id(), in IsApplicable()
438 uint32_t merge_block_id = header->MergeBlockIdIfAny(); in GetProblematicInstructionsIfConditionalCanBeFlattened() local
439 assert(merge_block_id && in GetProblematicInstructionsIfConditionalCanBeFlattened()
457 if (!dominator_analysis->Dominates(header->id(), merge_block_id) || in GetProblematicInstructionsIfConditionalCanBeFlattened()
458 !postdominator_analysis->Dominates(merge_block_id, header->id())) { in GetProblematicInstructionsIfConditionalCanBeFlattened()
478 block_id != merge_block_id) { in GetProblematicInstructionsIfConditionalCanBeFlattened()
618 {wrapper_info.merge_block_id(), wrapper_info.execute_block_id()}) { in EncloseInstructionInConditional()
632 ir_context, wrapper_info.merge_block_id(), in EncloseInstructionInConditional()
819 result.insert(side_effect_wrapper_info.merge_block_id()); in GetFreshIds()
/third_party/spirv-tools/source/fuzz/
Dtransformation_merge_function_returns.cpp225 uint32_t merge_block_id = in Apply() local
228 while (merge_block_id != 0 && in Apply()
229 !merge_blocks_to_returning_predecessors.count(merge_block_id)) { in Apply()
231 merge_block_id, std::map<uint32_t, std::pair<uint32_t, uint32_t>>()); in Apply()
232 merge_block_id = ir_context->GetStructuredCFGAnalysis()->LoopMergeBlock( in Apply()
233 merge_block_id); in Apply()
267 uint32_t merge_block_id = in Apply() local
273 if (merge_block_id != 0) { in Apply()
274 merge_blocks_to_returning_predecessors[merge_block_id].emplace( in Apply()
280 merge_block_id = message_.outer_return_id(); in Apply()
[all …]
Dtransformation_propagate_instruction_down.cpp111 if (auto merge_block_id = GetOpPhiBlockId( in Apply() local
115 for (auto predecessor_id : ir_context->cfg()->preds(merge_block_id)) { in Apply()
144 ->block(merge_block_id) in Apply()
527 auto merge_block_id = in GetOpPhiBlockId() local
531 if (!merge_block_id) { in GetOpPhiBlockId()
540 if (!dominator_analysis->IsReachable(merge_block_id) || in GetOpPhiBlockId()
541 !dominator_analysis->Dominates(block_id, merge_block_id)) { in GetOpPhiBlockId()
547 if (successor_ids.count(merge_block_id)) { in GetOpPhiBlockId()
553 assert(!ir_context->cfg()->preds(merge_block_id).empty() && in GetOpPhiBlockId()
555 for (auto predecessor_id : ir_context->cfg()->preds(merge_block_id)) { in GetOpPhiBlockId()
[all …]
Dtransformation_flatten_conditional_branch.cpp106 for (uint32_t id : {inst_to_info.second.merge_block_id(), in IsApplicable()
438 uint32_t merge_block_id = header->MergeBlockIdIfAny(); in GetProblematicInstructionsIfConditionalCanBeFlattened() local
439 assert(merge_block_id && in GetProblematicInstructionsIfConditionalCanBeFlattened()
457 if (!dominator_analysis->Dominates(header->id(), merge_block_id) || in GetProblematicInstructionsIfConditionalCanBeFlattened()
458 !postdominator_analysis->Dominates(merge_block_id, header->id())) { in GetProblematicInstructionsIfConditionalCanBeFlattened()
478 block_id != merge_block_id) { in GetProblematicInstructionsIfConditionalCanBeFlattened()
618 {wrapper_info.merge_block_id(), wrapper_info.execute_block_id()}) { in EncloseInstructionInConditional()
632 ir_context, wrapper_info.merge_block_id(), in EncloseInstructionInConditional()
819 result.insert(side_effect_wrapper_info.merge_block_id()); in GetFreshIds()
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/fuzz/
Dtransformation_merge_function_returns.cpp229 uint32_t merge_block_id = in Apply() local
232 while (merge_block_id != 0 && in Apply()
233 !merge_blocks_to_returning_predecessors.count(merge_block_id)) { in Apply()
235 merge_block_id, std::map<uint32_t, std::pair<uint32_t, uint32_t>>()); in Apply()
236 merge_block_id = ir_context->GetStructuredCFGAnalysis()->LoopMergeBlock( in Apply()
237 merge_block_id); in Apply()
271 uint32_t merge_block_id = in Apply() local
277 if (merge_block_id != 0) { in Apply()
278 merge_blocks_to_returning_predecessors[merge_block_id].emplace( in Apply()
284 merge_block_id = message_.outer_return_id(); in Apply()
[all …]
Dtransformation_propagate_instruction_down.cpp111 if (auto merge_block_id = GetOpPhiBlockId( in Apply() local
115 for (auto predecessor_id : ir_context->cfg()->preds(merge_block_id)) { in Apply()
144 ->block(merge_block_id) in Apply()
527 auto merge_block_id = in GetOpPhiBlockId() local
531 if (!merge_block_id) { in GetOpPhiBlockId()
540 if (!ir_context->IsReachable(*ir_context->cfg()->block(merge_block_id)) || in GetOpPhiBlockId()
541 !dominator_analysis->Dominates(block_id, merge_block_id)) { in GetOpPhiBlockId()
547 if (successor_ids.count(merge_block_id)) { in GetOpPhiBlockId()
553 assert(!ir_context->cfg()->preds(merge_block_id).empty() && in GetOpPhiBlockId()
555 for (auto predecessor_id : ir_context->cfg()->preds(merge_block_id)) { in GetOpPhiBlockId()
[all …]
Dtransformation_flatten_conditional_branch.cpp106 for (uint32_t id : {inst_to_info.second.merge_block_id(), in IsApplicable()
438 uint32_t merge_block_id = header->MergeBlockIdIfAny(); in GetProblematicInstructionsIfConditionalCanBeFlattened() local
439 assert(merge_block_id && in GetProblematicInstructionsIfConditionalCanBeFlattened()
457 if (!dominator_analysis->Dominates(header->id(), merge_block_id) || in GetProblematicInstructionsIfConditionalCanBeFlattened()
458 !postdominator_analysis->Dominates(merge_block_id, header->id())) { in GetProblematicInstructionsIfConditionalCanBeFlattened()
478 block_id != merge_block_id) { in GetProblematicInstructionsIfConditionalCanBeFlattened()
618 {wrapper_info.merge_block_id(), wrapper_info.execute_block_id()}) { in EncloseInstructionInConditional()
632 ir_context, wrapper_info.merge_block_id(), in EncloseInstructionInConditional()
819 result.insert(side_effect_wrapper_info.merge_block_id()); in GetFreshIds()
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/opt/
Dstruct_cfg_analysis.cpp136 for (uint32_t merge_block_id = MergeBlock(bb_id); merge_block_id != 0; in NestingDepth() local
137 merge_block_id = MergeBlock(merge_block_id)) { in NestingDepth()
171 for (uint32_t merge_block_id = LoopMergeBlock(bb_id); merge_block_id != 0; in LoopNestingDepth() local
172 merge_block_id = LoopMergeBlock(merge_block_id)) { in LoopNestingDepth()
Ddead_branch_elim_pass.cpp500 uint32_t start_block_id, uint32_t merge_block_id, uint32_t loop_merge_id, in FindFirstExitFromSelectionMerge() argument
507 while (start_block_id != merge_block_id && start_block_id != loop_merge_id && in FindFirstExitFromSelectionMerge()
521 loop_merge_id != merge_block_id) { in FindFirstExitFromSelectionMerge()
526 loop_continue_id != merge_block_id) { in FindFirstExitFromSelectionMerge()
531 switch_merge_id != merge_block_id) { in FindFirstExitFromSelectionMerge()
570 if (target == merge_block_id) { in FindFirstExitFromSelectionMerge()
643 uint32_t merge_block_id = start_block->MergeBlockIdIfAny(); in SwitchHasNestedBreak() local
647 merge_block_id, in SwitchHasNestedBreak()
Daggressive_dead_code_elim_pass.cpp279 uint32_t merge_block_id = 0; in KillDeadInstructions() local
280 (*bi)->ForEachInst([this, &modified, &merge_block_id](Instruction* inst) { in KillDeadInstructions()
287 merge_block_id = inst->GetSingleWordInOperand(0); in KillDeadInstructions()
294 if (merge_block_id != 0) { in KillDeadInstructions()
295 AddBranch(merge_block_id, *bi); in KillDeadInstructions()
296 for (++bi; (*bi)->id() != merge_block_id; ++bi) { in KillDeadInstructions()
/third_party/spirv-tools/source/opt/
Dstruct_cfg_analysis.cpp136 for (uint32_t merge_block_id = MergeBlock(bb_id); merge_block_id != 0; in NestingDepth() local
137 merge_block_id = MergeBlock(merge_block_id)) { in NestingDepth()
171 for (uint32_t merge_block_id = LoopMergeBlock(bb_id); merge_block_id != 0; in LoopNestingDepth() local
172 merge_block_id = LoopMergeBlock(merge_block_id)) { in LoopNestingDepth()
Ddead_branch_elim_pass.cpp495 uint32_t start_block_id, uint32_t merge_block_id, uint32_t loop_merge_id, in FindFirstExitFromSelectionMerge() argument
502 while (start_block_id != merge_block_id && start_block_id != loop_merge_id && in FindFirstExitFromSelectionMerge()
516 loop_merge_id != merge_block_id) { in FindFirstExitFromSelectionMerge()
521 loop_continue_id != merge_block_id) { in FindFirstExitFromSelectionMerge()
526 switch_merge_id != merge_block_id) { in FindFirstExitFromSelectionMerge()
565 if (target == merge_block_id) { in FindFirstExitFromSelectionMerge()
638 uint32_t merge_block_id = start_block->MergeBlockIdIfAny(); in SwitchHasNestedBreak() local
642 merge_block_id, in SwitchHasNestedBreak()
/third_party/skia/third_party/externals/spirv-tools/source/opt/
Dstruct_cfg_analysis.cpp136 for (uint32_t merge_block_id = MergeBlock(bb_id); merge_block_id != 0; in NestingDepth() local
137 merge_block_id = MergeBlock(merge_block_id)) { in NestingDepth()
171 for (uint32_t merge_block_id = LoopMergeBlock(bb_id); merge_block_id != 0; in LoopNestingDepth() local
172 merge_block_id = LoopMergeBlock(merge_block_id)) { in LoopNestingDepth()
Ddead_branch_elim_pass.cpp500 uint32_t start_block_id, uint32_t merge_block_id, uint32_t loop_merge_id, in FindFirstExitFromSelectionMerge() argument
507 while (start_block_id != merge_block_id && start_block_id != loop_merge_id && in FindFirstExitFromSelectionMerge()
521 loop_merge_id != merge_block_id) { in FindFirstExitFromSelectionMerge()
526 loop_continue_id != merge_block_id) { in FindFirstExitFromSelectionMerge()
531 switch_merge_id != merge_block_id) { in FindFirstExitFromSelectionMerge()
570 if (target == merge_block_id) { in FindFirstExitFromSelectionMerge()
643 uint32_t merge_block_id = start_block->MergeBlockIdIfAny(); in SwitchHasNestedBreak() local
647 merge_block_id, in SwitchHasNestedBreak()
/third_party/skia/third_party/externals/spirv-tools/source/val/
Dconstruct.cpp156 auto merge_block_id = merge_inst->GetOperandAs<uint32_t>(0u); in IsStructuredExit() local
158 if (dest->id() == merge_block_id || dest->id() == continue_block_id) { in IsStructuredExit()
167 auto merge_block_id = merge_inst->GetOperandAs<uint32_t>(0u); in IsStructuredExit() local
168 if (dest == header || dest->id() == merge_block_id) { in IsStructuredExit()
/third_party/spirv-tools/source/val/
Dconstruct.cpp151 auto merge_block_id = merge_inst->GetOperandAs<uint32_t>(0u); in IsStructuredExit() local
153 if (dest->id() == merge_block_id || dest->id() == continue_block_id) { in IsStructuredExit()
162 auto merge_block_id = merge_inst->GetOperandAs<uint32_t>(0u); in IsStructuredExit() local
163 if (dest == header || dest->id() == merge_block_id) { in IsStructuredExit()
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/val/
Dconstruct.cpp156 auto merge_block_id = merge_inst->GetOperandAs<uint32_t>(0u); in IsStructuredExit() local
158 if (dest->id() == merge_block_id || dest->id() == continue_block_id) { in IsStructuredExit()
167 auto merge_block_id = merge_inst->GetOperandAs<uint32_t>(0u); in IsStructuredExit() local
168 if (dest == header || dest->id() == merge_block_id) { in IsStructuredExit()

123