Skip to content
Snippets Groups Projects
Unverified Commit 685fccd9 authored by John Kessenich's avatar John Kessenich Committed by GitHub
Browse files

Merge pull request #1565 from greg-lunarg/kg25

Add DeadBranchElim before MergeReturn in legalization.
parents 4207c97b 68fbda98
No related branches found
No related tags found
No related merge requests found
......@@ -152,6 +152,7 @@ void SpirvToolsLegalize(const glslang::TIntermediate&, std::vector<unsigned int>
out << std::endl;
});
optimizer.RegisterPass(spvtools::CreateDeadBranchElimPass());
optimizer.RegisterPass(spvtools::CreateMergeReturnPass());
optimizer.RegisterPass(spvtools::CreateInlineExhaustivePass());
optimizer.RegisterPass(spvtools::CreateEliminateDeadFunctionsPass());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment