SPIRV-Tools/source/reduce
Alastair Donaldson 4fcdc58946
Add IsReachable function to IRContext (#4323)
There was a lot of code in the codebase that would get the dominator
analysis for a function and then use it to check whether a block is
reachable. In the fuzzer, a utility method had been introduced to make
this more concise, but it was not being used consistently.

This change moves the utility method to IRContext, so that it can be
used throughout the codebase, and refactors all existing checks for
block reachability to use the utility method.
2021-06-28 20:00:14 +01:00
..
change_operand_reduction_opportunity.cpp Invalidate analyses (#4260) 2021-05-14 15:00:51 +01:00
change_operand_reduction_opportunity.h reduce: miscellaneous fixes (#2494) 2019-04-08 19:37:17 +01:00
change_operand_to_undef_reduction_opportunity.cpp Invalidate DefUse analysis (#4255) 2021-04-29 09:44:59 +01:00
change_operand_to_undef_reduction_opportunity.h spirv-reduce: add OperandToUndefReductionPass (#2200) 2018-12-19 13:25:56 +00:00
CMakeLists.txt spirv-reduce: Cleanup a few things (#4352) 2021-06-28 17:53:49 +01:00
conditional_branch_to_simple_conditional_branch_opportunity_finder.cpp spirv-reduce: Support reducing a specific function (#3774) 2020-09-11 06:29:43 +01:00
conditional_branch_to_simple_conditional_branch_opportunity_finder.h spirv-reduce: Support reducing a specific function (#3774) 2020-09-11 06:29:43 +01:00
conditional_branch_to_simple_conditional_branch_reduction_opportunity.cpp spirv-reduce: Refactoring (#3793) 2020-09-10 22:03:40 +01:00
conditional_branch_to_simple_conditional_branch_reduction_opportunity.h reduce: add large tests and fix (#2947) 2019-10-10 17:12:42 +01:00
merge_blocks_reduction_opportunity_finder.cpp spirv-reduce: Support reducing a specific function (#3774) 2020-09-11 06:29:43 +01:00
merge_blocks_reduction_opportunity_finder.h spirv-reduce: Support reducing a specific function (#3774) 2020-09-11 06:29:43 +01:00
merge_blocks_reduction_opportunity.cpp spirv-reduce: Refactoring (#3793) 2020-09-10 22:03:40 +01:00
merge_blocks_reduction_opportunity.h reduce: miscellaneous fixes (#2494) 2019-04-08 19:37:17 +01:00
operand_to_const_reduction_opportunity_finder.cpp spirv-reduce: Support reducing a specific function (#3774) 2020-09-11 06:29:43 +01:00
operand_to_const_reduction_opportunity_finder.h spirv-reduce: Support reducing a specific function (#3774) 2020-09-11 06:29:43 +01:00
operand_to_dominating_id_reduction_opportunity_finder.cpp spirv-reduce: Support reducing a specific function (#3774) 2020-09-11 06:29:43 +01:00
operand_to_dominating_id_reduction_opportunity_finder.h spirv-reduce: Support reducing a specific function (#3774) 2020-09-11 06:29:43 +01:00
operand_to_undef_reduction_opportunity_finder.cpp spirv-reduce: Support reducing a specific function (#3774) 2020-09-11 06:29:43 +01:00
operand_to_undef_reduction_opportunity_finder.h spirv-reduce: Support reducing a specific function (#3774) 2020-09-11 06:29:43 +01:00
pch_source_reduce.cpp Fix the missing pch files in spirv-reduce (#2097) 2018-11-22 18:00:08 -05:00
pch_source_reduce.h spirv-reduce: Remove unused uniforms and similar (#3321) 2020-05-13 22:08:40 +01:00
reducer.cpp spirv-reduce: Remove redundant r-value references (#4232) 2021-04-09 13:55:51 +01:00
reducer.h spirv-reduce: Remove redundant r-value references (#4232) 2021-04-09 13:55:51 +01:00
reduction_opportunity_finder.cpp spirv-reduce: Support reducing a specific function (#3774) 2020-09-11 06:29:43 +01:00
reduction_opportunity_finder.h spirv-reduce: Support reducing a specific function (#3774) 2020-09-11 06:29:43 +01:00
reduction_opportunity.cpp reduce: miscellaneous fixes (#2494) 2019-04-08 19:37:17 +01:00
reduction_opportunity.h spirv-reduce: add OperandToUndefReductionPass (#2200) 2018-12-19 13:25:56 +00:00
reduction_pass.cpp spirv-reduce: Support reducing a specific function (#3774) 2020-09-11 06:29:43 +01:00
reduction_pass.h spirv-reduce: Support reducing a specific function (#3774) 2020-09-11 06:29:43 +01:00
reduction_util.cpp spirv-reduce: Refactoring (#3793) 2020-09-10 22:03:40 +01:00
reduction_util.h spirv-reduce: Refactoring (#3793) 2020-09-10 22:03:40 +01:00
remove_block_reduction_opportunity_finder.cpp Invalidate analyses (#4260) 2021-05-14 15:00:51 +01:00
remove_block_reduction_opportunity_finder.h spirv-reduce: Support reducing a specific function (#3774) 2020-09-11 06:29:43 +01:00
remove_block_reduction_opportunity.cpp Invalidate analyses (#4260) 2021-05-14 15:00:51 +01:00
remove_block_reduction_opportunity.h Invalidate analyses (#4260) 2021-05-14 15:00:51 +01:00
remove_function_reduction_opportunity_finder.cpp spirv-reduce: Support reducing a specific function (#3774) 2020-09-11 06:29:43 +01:00
remove_function_reduction_opportunity_finder.h spirv-reduce: Support reducing a specific function (#3774) 2020-09-11 06:29:43 +01:00
remove_function_reduction_opportunity.cpp Invalidate analyses (#4260) 2021-05-14 15:00:51 +01:00
remove_function_reduction_opportunity.h reduce: miscellaneous fixes (#2494) 2019-04-08 19:37:17 +01:00
remove_instruction_reduction_opportunity.cpp spirv-reduce: Remove unused uniforms and similar (#3321) 2020-05-13 22:08:40 +01:00
remove_instruction_reduction_opportunity.h reduce: miscellaneous fixes (#2494) 2019-04-08 19:37:17 +01:00
remove_selection_reduction_opportunity_finder.cpp spirv-reduce: Support reducing a specific function (#3774) 2020-09-11 06:29:43 +01:00
remove_selection_reduction_opportunity_finder.h spirv-reduce: Support reducing a specific function (#3774) 2020-09-11 06:29:43 +01:00
remove_selection_reduction_opportunity.cpp reduce: add remove_selection_reduction_opportunity (#2485) 2019-04-02 16:50:15 +01:00
remove_selection_reduction_opportunity.h reduce: add remove_selection_reduction_opportunity (#2485) 2019-04-02 16:50:15 +01:00
remove_struct_member_reduction_opportunity.cpp Invalidate analyses (#4260) 2021-05-14 15:00:51 +01:00
remove_struct_member_reduction_opportunity.h spirv-reduce: Remove unused struct members (#3329) 2020-05-14 15:36:38 +01:00
remove_unused_instruction_reduction_opportunity_finder.cpp spirv-reduce: Support reducing a specific function (#3774) 2020-09-11 06:29:43 +01:00
remove_unused_instruction_reduction_opportunity_finder.h spirv-reduce: Support reducing a specific function (#3774) 2020-09-11 06:29:43 +01:00
remove_unused_struct_member_reduction_opportunity_finder.cpp spirv-reduce: Support reducing a specific function (#3774) 2020-09-11 06:29:43 +01:00
remove_unused_struct_member_reduction_opportunity_finder.h spirv-reduce: Support reducing a specific function (#3774) 2020-09-11 06:29:43 +01:00
simple_conditional_branch_to_branch_opportunity_finder.cpp spirv-reduce: Support reducing a specific function (#3774) 2020-09-11 06:29:43 +01:00
simple_conditional_branch_to_branch_opportunity_finder.h spirv-reduce: Support reducing a specific function (#3774) 2020-09-11 06:29:43 +01:00
simple_conditional_branch_to_branch_reduction_opportunity.cpp Invalidate analyses (#4260) 2021-05-14 15:00:51 +01:00
simple_conditional_branch_to_branch_reduction_opportunity.h reduce: Add two branch reduction passes (#2507) 2019-04-15 19:54:36 +01:00
structured_loop_to_selection_reduction_opportunity_finder.cpp spirv-reduce: Cleanup a few things (#4352) 2021-06-28 17:53:49 +01:00
structured_loop_to_selection_reduction_opportunity_finder.h spirv-reduce: Support reducing a specific function (#3774) 2020-09-11 06:29:43 +01:00
structured_loop_to_selection_reduction_opportunity.cpp Add IsReachable function to IRContext (#4323) 2021-06-28 20:00:14 +01:00
structured_loop_to_selection_reduction_opportunity.h spirv-reduce: Cleanup a few things (#4352) 2021-06-28 17:53:49 +01:00