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

gcm moment to allow reduce-slf in CPU code without worry

parent 3565d96d
No related branches found
No related tags found
1 merge request!206More misc. rodinia opts
Pipeline #201943 passed
......@@ -883,6 +883,13 @@ fn spill_clones(
init == *b
&& editor.func().schedules[a.idx()].contains(&Schedule::ParallelReduce)
})
.unwrap_or(false)
&& !editor.func().nodes[a.idx()]
.try_phi()
.map(|(_, data)| {
data.contains(b)
&& editor.func().schedules[a.idx()].contains(&Schedule::ParallelReduce)
})
.unwrap_or(false))
});
......
......@@ -29,6 +29,8 @@ fixpoint {
}
simpl!(*);
fork-interchange[0, 1](loop1);
reduce-slf(*);
simpl!(*);
fork-split(*);
unforkify(*);
......
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