mirror of
https://github.com/openharmony/third_party_spirv-tools.git
synced 2026-07-19 23:23:32 -04:00
The reviewed cfg_cleanup optimize pass
This commit is contained in:
@@ -230,11 +230,6 @@ Optimizer::PassToken CreateCompactIdsPass() {
|
||||
MakeUnique<opt::CompactIdsPass>());
|
||||
}
|
||||
|
||||
Optimizer::PassToken CreateCFGCleanupPass() {
|
||||
return MakeUnique<Optimizer::PassToken::Impl>(
|
||||
MakeUnique<opt::CFGCleanupPass>());
|
||||
}
|
||||
|
||||
std::vector<const char*> Optimizer::GetPassNames() const {
|
||||
std::vector<const char*> v;
|
||||
for (uint32_t i = 0; i < impl_->pass_manager.NumPasses(); i++) {
|
||||
@@ -243,4 +238,9 @@ std::vector<const char*> Optimizer::GetPassNames() const {
|
||||
return v;
|
||||
}
|
||||
|
||||
Optimizer::PassToken CreateCFGCleanupPass() {
|
||||
return MakeUnique<Optimizer::PassToken::Impl>(
|
||||
MakeUnique<opt::CFGCleanupPass>());
|
||||
}
|
||||
|
||||
} // namespace spvtools
|
||||
|
||||
Reference in New Issue
Block a user