提交 591ad33e 编写于 作者: D dzhwinter

polish code for reading. test=develop

上级 18afb77e
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册