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
This commit is part of merge request !206. Comments created here will be created in the context of that merge request.
...@@ -883,6 +883,13 @@ fn spill_clones( ...@@ -883,6 +883,13 @@ fn spill_clones(
init == *b init == *b
&& editor.func().schedules[a.idx()].contains(&Schedule::ParallelReduce) && 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)) .unwrap_or(false))
}); });
......
...@@ -29,6 +29,8 @@ fixpoint { ...@@ -29,6 +29,8 @@ fixpoint {
} }
simpl!(*); simpl!(*);
fork-interchange[0, 1](loop1); fork-interchange[0, 1](loop1);
reduce-slf(*);
simpl!(*);
fork-split(*); fork-split(*);
unforkify(*); 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