Skip to content

Commit

Permalink
Add eliminate-dead-input-components to -Os
Browse files Browse the repository at this point in the history
  • Loading branch information
greg-lunarg committed Mar 24, 2022
1 parent 397086a commit abbdf63
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions SPIRV/SpvTools.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ void SpirvToolsTransform(const glslang::TIntermediate& intermediate, std::vector
optimizer.RegisterPass(spvtools::CreateInterpolateFixupPass());
if (options->optimizeSize) {
optimizer.RegisterPass(spvtools::CreateRedundancyEliminationPass());
optimizer.RegisterPass(spvtools::CreateEliminateDeadInputComponentsPass());
}
optimizer.RegisterPass(spvtools::CreateAggressiveDCEPass());
optimizer.RegisterPass(spvtools::CreateCFGCleanupPass());
Expand Down

0 comments on commit abbdf63

Please sign in to comment.