Commit 5ad42259 authored by umangyadav's avatar umangyadav
Browse files

enable trace on mod passes

parent 09cb3e48
......@@ -82,7 +82,7 @@ module& get_module(module_pass_manager& mpm) { return mpm.get_module(); }
void run_passes(module& mod, const std::vector<pass>& passes, tracer trace)
{
if(enabled(MIGRAPHX_TRACE_PASSES{}))
if(enabled(MIGRAPHX_TRACE_PASSES{}) and not trace.enabled())
trace = tracer{mod.name() + "_passes"};
for(const auto& p : passes)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment