diff options
author | Greg Fischer <greg@lunarg.com> | 2022-03-23 05:50:52 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-23 05:50:52 +0300 |
commit | 9d1b572884ff4b39504c255eb77fd2a7e5a3e769 (patch) | |
tree | 0788c60558432623e8dbcc1f5e94646d8054299d /include | |
parent | f8cd51431e41ae434ab4f9a452732828f4f2c00b (diff) |
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 'include')
-rw-r--r-- | include/spirv-tools/optimizer.hpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/spirv-tools/optimizer.hpp b/include/spirv-tools/optimizer.hpp index 2273e85df..fbbd9bc07 100644 --- a/include/spirv-tools/optimizer.hpp +++ b/include/spirv-tools/optimizer.hpp @@ -886,6 +886,13 @@ Optimizer::PassToken CreateAmdExtToKhrPass(); // propagated into their final positions. Optimizer::PassToken CreateInterpolateFixupPass(); +// Removes unused components from composite input variables. Current +// implementation just removes trailing unused components from input arrays. +// The pass performs best after maximizing dead code removal. A subsequent dead +// code elimination pass would be beneficial in removing newly unused component +// types. +Optimizer::PassToken CreateEliminateDeadInputComponentsPass(); + // Creates a convert-to-sampled-image pass to convert images and/or // samplers with given pairs of descriptor set and binding to sampled image. // If a pair of an image and a sampler have the same pair of descriptor set and |