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

Fix emitting fork-joins in RT

parent 4d51c830
No related branches found
No related tags found
1 merge request!193Fix parallel code gen in RT backend
Pipeline #201786 passed
......@@ -1361,8 +1361,8 @@ impl<'a> RTContext<'a> {
fn get_value(&self, id: NodeID, bb: NodeID, lhs: bool) -> String {
let func = self.get_func();
if let Some((control, _, _)) = func.nodes[id.idx()].try_reduce()
&& let fork = self.join_fork_map[&control]
&& !self.nodes_in_fork_joins[&fork].contains(&bb)
&& (control == bb
|| !self.nodes_in_fork_joins[&self.join_fork_map[&control]].contains(&bb))
{
format!("reduce_{}", id.idx())
} else if func.nodes[id.idx()].is_call()
......
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