KhronosGroup / SPIRV-Tools

Apache License 2.0
1.09k stars 561 forks source link

spirv-opt poor performance (size reduction) #756

Open atgoo opened 7 years ago

atgoo commented 7 years ago

All-options-on size reduction spirv-opt --inline-entry-points-exhaustive --convert-local-access-chains --eliminate-local-single-block --eliminate-local-single-store --eliminate-insert-extract --eliminate-dead-code-aggressive --eliminate-dead-branches --merge-blocks --eliminate-local-single-block --eliminate-local-single-store --eliminate-local-multi-store --eliminate-insert-extract --eliminate-dead-code-aggressive --eliminate-common-uniform

has very poor performance on these files https://github.com/aras-p/smol-v/blob/master/tests/spirv-dumps/shadertoy

dneto0 commented 7 years ago

The problem is running time. Cc @greg-lunarg

atgoo commented 7 years ago

Likely culprit --eliminate-dead-code-aggressive.