diff options
author | Greg Fischer <greg@lunarg.com> | 2022-03-22 20:50:52 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-22 20:50:52 -0600 |
commit | 9d1b572884ff4b39504c255eb77fd2a7e5a3e769 (patch) | |
tree | 0788c60558432623e8dbcc1f5e94646d8054299d /tools | |
parent | f8cd51431e41ae434ab4f9a452732828f4f2c00b (diff) | |
download | SPIRV-Tools-9d1b572884ff4b39504c255eb77fd2a7e5a3e769.tar.gz SPIRV-Tools-9d1b572884ff4b39504c255eb77fd2a7e5a3e769.tar.bz2 SPIRV-Tools-9d1b572884ff4b39504c255eb77fd2a7e5a3e769.zip |
spirv-opt: (WIP) Eliminate Dead Input Component Pass (#4720)
This adds the --eliminate-dead-input-components pass which currently
removes trailing unused components from input arrays.
Fixes #4532
Diffstat (limited to 'tools')
-rw-r--r-- | tools/opt/opt.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/opt/opt.cpp b/tools/opt/opt.cpp index 63511a6a..0129478b 100644 --- a/tools/opt/opt.cpp +++ b/tools/opt/opt.cpp @@ -208,6 +208,10 @@ Options (in lexicographical order):)", unused stores to vector components, that are not removed by aggressive dead code elimination.)"); printf(R"( + --eliminate-dead-input-components + Deletes unused components from input variables. Currently + deletes trailing unused elements from input arrays.)"); + printf(R"( --eliminate-dead-variables Deletes module scope variables that are not referenced.)"); printf(R"( |