Functions: implement common subnetwork elimination optimization

This was the last of the three network optimizations I developed in
the functions branch. Common subnetwork elimination and constant
folding together can get rid of most unnecessary nodes.
This commit is contained in:
2020-07-08 15:10:24 +02:00
parent e3e42c00cb
commit d1f4546a59
2 changed files with 183 additions and 0 deletions

View File

@@ -25,6 +25,7 @@ namespace blender::fn::mf_network_optimization {
void dead_node_removal(MFNetwork &network);
void constant_folding(MFNetwork &network, ResourceCollector &resources);
void common_subnetwork_elimination(MFNetwork &network);
} // namespace blender::fn::mf_network_optimization