Remove extension whitelist from some transforms
authorDavid Neto <dneto@google.com>
Thu, 8 Mar 2018 17:17:52 +0000 (12:17 -0500)
committerDavid Neto <dneto@google.com>
Thu, 8 Mar 2018 17:25:49 +0000 (12:25 -0500)
commit340370eddbb9f0e7d26b6a4f7e22c1b98150e5e1
tree08851fbe7435562b6424aa29f67afde67fb95c4a
parent314cfa29b20310b080ad0452b75c9aed1383cf33
Remove extension whitelist from some transforms

Remove extension whitelists from transforms that are essentially
combinatorial (and avoiding pointers) or which affect only control flow.
It's very very unlikely an extension will add a new control flow construct.

Remove from:
- dead branch elimination
- dead insertion elimination
- insert extract elimination
- block merge

Fixes https://github.com/KhronosGroup/SPIRV-Tools/issues/1392
source/opt/block_merge_pass.cpp
source/opt/block_merge_pass.h
source/opt/dead_branch_elim_pass.cpp
source/opt/dead_branch_elim_pass.h
source/opt/dead_insert_elim_pass.cpp
source/opt/dead_insert_elim_pass.h
source/opt/insert_extract_elim.cpp
source/opt/insert_extract_elim.h