Skip to content
Snippets Groups Projects
Commit c7aa9468 authored by Russel Arbore's avatar Russel Arbore
Browse files

Fix inlining id functions

parent 875a17f0
No related branches found
No related tags found
1 merge request!193Fix parallel code gen in RT backend
Pipeline #201790 passed
...@@ -210,7 +210,11 @@ fn inline_func( ...@@ -210,7 +210,11 @@ fn inline_func(
} }
// Finally, delete the call node. // Finally, delete the call node.
edit = edit.replace_all_uses(id, old_id_to_new_id(called_return_data))?; if let Node::Parameter { index } = called_func.nodes[called_return_data.idx()] {
edit = edit.replace_all_uses(id, args[index])?;
} else {
edit = edit.replace_all_uses(id, old_id_to_new_id(called_return_data))?;
}
edit = edit.delete_node(control)?; edit = edit.delete_node(control)?;
edit = edit.delete_node(id)?; edit = edit.delete_node(id)?;
......
...@@ -52,6 +52,7 @@ slf(auto.test2); ...@@ -52,6 +52,7 @@ slf(auto.test2);
infer-schedules(auto.test2); infer-schedules(auto.test2);
fork-interchange[0, 1](auto.test2); fork-interchange[0, 1](auto.test2);
inline(test6);
fork-tile[32, 0, false, true](test6@loop); fork-tile[32, 0, false, true](test6@loop);
let out = fork-split(test6@loop); let out = fork-split(test6@loop);
let out = auto-outline(test6); let out = auto-outline(test6);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment