"src/targets/vscode:/vscode.git/clone" did not exist on "fd94f57966bbc8cd0200e23a561042212bdef690"
Commit 34f9a26e authored by Paul's avatar Paul
Browse files

Remove unused variable when exporting to cpp

parent 31331a16
......@@ -187,6 +187,9 @@ struct loader
auto last = std::prev(mm->end(), trim);
mm->remove_instructions(last, mm->end());
}
// Remove unused variable when exporting to cpp
if (output_type == "cpp")
migraphx::run_passes(*p.get_main_module(), {migraphx::dead_code_elimination{}});
if(optimize)
{
migraphx::run_passes(*p.get_main_module(),
......
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