Update passes to handle function declarations (#4599)
Spirv-opt has not had to handle module with function declarations. This lead many passes to assume that every function has a body. This is not always true. This commit will modify a number of passes to handle function declarations. Fixes https://github.com/KhronosGroup/SPIRV-Tools/issues/4443
Showing
- source/opt/ccp_pass.cpp 4 additions, 0 deletionssource/opt/ccp_pass.cpp
- source/opt/combine_access_chains.cpp 4 additions, 0 deletionssource/opt/combine_access_chains.cpp
- source/opt/copy_prop_arrays.cpp 4 additions, 0 deletionssource/opt/copy_prop_arrays.cpp
- source/opt/dead_branch_elim_pass.cpp 4 additions, 0 deletionssource/opt/dead_branch_elim_pass.cpp
- source/opt/function.h 3 additions, 0 deletionssource/opt/function.h
- source/opt/loop_unroller.cpp 4 additions, 0 deletionssource/opt/loop_unroller.cpp
- source/opt/redundancy_elimination.cpp 4 additions, 0 deletionssource/opt/redundancy_elimination.cpp
- source/opt/scalar_replacement_pass.cpp 4 additions, 0 deletionssource/opt/scalar_replacement_pass.cpp
- source/opt/simplification_pass.cpp 4 additions, 0 deletionssource/opt/simplification_pass.cpp
- source/opt/ssa_rewrite_pass.cpp 3 additions, 0 deletionssource/opt/ssa_rewrite_pass.cpp
- test/opt/ccp_test.cpp 26 additions, 0 deletionstest/opt/ccp_test.cpp
- test/opt/combine_access_chains_test.cpp 26 additions, 0 deletionstest/opt/combine_access_chains_test.cpp
- test/opt/copy_prop_array_test.cpp 25 additions, 0 deletionstest/opt/copy_prop_array_test.cpp
- test/opt/dead_branch_elim_test.cpp 26 additions, 0 deletionstest/opt/dead_branch_elim_test.cpp
- test/opt/local_ssa_elim_test.cpp 26 additions, 0 deletionstest/opt/local_ssa_elim_test.cpp
- test/opt/loop_optimizations/unroll_assumptions.cpp 31 additions, 0 deletionstest/opt/loop_optimizations/unroll_assumptions.cpp
- test/opt/redundancy_elimination_test.cpp 27 additions, 1 deletiontest/opt/redundancy_elimination_test.cpp
- test/opt/scalar_replacement_test.cpp 26 additions, 0 deletionstest/opt/scalar_replacement_test.cpp
- test/opt/simplification_test.cpp 25 additions, 0 deletionstest/opt/simplification_test.cpp
Loading
Please register or sign in to comment