Skip to content
Snippets Groups Projects
Commit b3c5aade authored by Xavier Routh's avatar Xavier Routh
Browse files

new reassoc example

parent 04ce9b43
No related branches found
No related tags found
No related merge requests found
Pipeline #202571 failed
......@@ -10,23 +10,20 @@ delete-uncalled(*);
forkify(*);
fork-guard-elim(*);
dce(*);
// xdot[true](*);
// fork-tile[8, 0, false, true](*);
let a = fork-split(*);
// xdot[true](*);
fixpoint stop after 10 {
forkify(entry@inner);
fork-guard-elim(entry@inner);
fork-unroll(entry@inner);
predication(entry@inner);
gvn(entry@inner);
phi-elim(entry@inner);
ccp(entry@inner);
simplify-cfg(entry@inner);
dce(entry@inner);
lift-dc-math(entry@inner);
forkify(*);
fork-guard-elim(*);
fork-unroll(*);
predication(*);
gvn(*);
phi-elim(*);
ccp(*);
simplify-cfg(*);
dce(*);
lift-dc-math(*);
}
// xdot[true](*);
......
......@@ -21,11 +21,11 @@ fn reduce2<n: usize, k: usize>(a : i32[n, k]) -> i32 {
}
#[entry]
fn entry(a: i32[32], b: i32[16, 2]) -> i32 {
// let r = reduce::<32>(a);
fn entry(a: i32[16], b: i32[16, 2]) -> i32 {
let r = reduce::<16>(a);
let r2 = reduce2::<16, 2>(b);
// let r2 = reduce2::<16, 2>(b);
return r2;
return r;
}
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