Commit 6a141efa authored by Shucai Xiao's avatar Shucai Xiao
Browse files

fixed two comments from code review.'

parent 6f44fa29
......@@ -18,9 +18,6 @@ inline namespace MIGRAPHX_INLINE_NS {
void run_passes(program& prog, const std::vector<pass>& passes, tracer trace)
{
if(enabled(MIGRAPHX_TRACE_COMPILE{}))
trace = tracer{std::cout};
for(auto& p : passes)
{
trace("Pass: ", p.name());
......
......@@ -292,8 +292,7 @@ void program::compile(const target& t, tracer trace)
trace = tracer{std::cout};
trace(*this);
trace();
auto vec_passes = t.get_passes(this->impl->ctx);
run_passes(*this, vec_passes, trace);
run_passes(*this, t.get_passes(this->impl->ctx), trace);
auto invalid = this->validate();
if(invalid != impl->instructions.end())
{
......
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