mirror of
https://github.com/KhronosGroup/SPIRV-Tools
synced 2024-12-29 03:01:08 +00:00
Remove redundant passes from legalization passes
With work that Alan has done, some passes have become redundant. ADCE now removed unused variables. Dead branch elimination removes unreachable blocks. This means we can remove CFG Cleanup and dead variable elimination.
This commit is contained in:
parent
6587d3f8a3
commit
8cb0aec724
@ -107,11 +107,8 @@ Optimizer& Optimizer::RegisterLegalizationPasses() {
|
||||
// May need loop unrolling here see
|
||||
// https://github.com/Microsoft/DirectXShaderCompiler/pull/930
|
||||
.RegisterPass(CreateDeadBranchElimPass())
|
||||
.RegisterPass(CreateCFGCleanupPass())
|
||||
// Get rid of unused code that leave traces of the illegal code.
|
||||
.RegisterPass(CreateAggressiveDCEPass())
|
||||
// TODO: Remove this once ADCE can do it.
|
||||
.RegisterPass(CreateDeadVariableEliminationPass());
|
||||
.RegisterPass(CreateAggressiveDCEPass());
|
||||
}
|
||||
|
||||
Optimizer& Optimizer::RegisterPerformancePasses() {
|
||||
|
Loading…
Reference in New Issue
Block a user