polish code for reading. test=develop

revert-15774-anakin_subgraph_engine
dzhwinter 6 years ago
parent 18afb77e78
commit 591ad33e32

@ -46,6 +46,7 @@ namespace details {
std::unique_ptr<ir::Graph> MemoryOptimizePass::ApplyImpl(
std::unique_ptr<ir::Graph> graph) const {
auto nodes = graph->Nodes();
ClearControlDepVars(graph.get());
CollectSkipVarsSet(nodes);
cfg_.reset(new details::ControlFlowGraph(*graph));
@ -128,7 +129,7 @@ std::unique_ptr<ir::Graph> MemoryOptimizePass::ApplyImpl(
}
}
}
// graph->ResolveHazard(var_nodes_);
graph->ResolveHazard(var_nodes_);
return graph;
}

Loading…
Cancel
Save