compact_ids_pass.h
constants.h
dead_branch_elim_pass.h
- dead_variable_elimination.h
+ dead_variable_elimination.h
decoration_manager.h
def_use_manager.h
eliminate_dead_constant_pass.h
decoration_manager.cpp
def_use_manager.cpp
dead_branch_elim_pass.cpp
- dead_variable_elimination.cpp
+ dead_variable_elimination.cpp
eliminate_dead_constant_pass.cpp
flatten_decoration_pass.cpp
fold.cpp
types.cpp
type_manager.cpp
unify_const_pass.cpp
- instruction_list.cpp)
+ instruction_list.cpp)
spvtools_default_compile_options(SPIRV-Tools-opt)
target_include_directories(SPIRV-Tools-opt
.RegisterPass(CreateBlockMergePass())
.RegisterPass(CreateLocalMultiStoreElimPass())
.RegisterPass(CreateInsertExtractElimPass())
- .RegisterPass(CreateCommonUniformElimPass());
+ .RegisterPass(CreateCommonUniformElimPass())
+ .RegisterPass(CreateDeadVariableEliminationPass());
}
Optimizer& Optimizer::RegisterSizePasses() {
.RegisterPass(CreateBlockMergePass())
.RegisterPass(CreateLocalMultiStoreElimPass())
.RegisterPass(CreateInsertExtractElimPass())
- .RegisterPass(CreateCommonUniformElimPass());
+ .RegisterPass(CreateCommonUniformElimPass())
+ .RegisterPass(CreateDeadVariableEliminationPass());
}
bool Optimizer::Run(const uint32_t* original_binary,
inline IntrusiveNodeBase<NodeType>& IntrusiveNodeBase<NodeType>::operator=(
const IntrusiveNodeBase&) {
assert(!is_sentinel_);
- if (IsInAList()) RemoveFromList();
+ if (IsInAList()) {
+ RemoveFromList();
+ }
return *this;
}