Skip to content

Commit 1750c1e

Browse files
kumasentoivanradanov
authored andcommitted
Added test cases
1 parent 43f8bdc commit 1750c1e

File tree

2 files changed

+14
-52
lines changed

2 files changed

+14
-52
lines changed

tools/polymer/test/polymer-opt/Reg2Mem/aes.mlir

Lines changed: 0 additions & 52 deletions
This file was deleted.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
2+
3+
// a = A[i]; A[i] *= a; A[i] += a;
4+
func @foo(%A: memref<10xf32>) {
5+
affine.for %i = 0 to 10 {
6+
%0 = affine.load %A[%i] : memref<10xf32>
7+
%1 = mulf %0, %0 : f32
8+
affine.store %1, %A[%i] : memref<10xf32>
9+
// Should replace %0 by a load from a scratchpad.
10+
%2 = addf %1, %0 : f32
11+
affine.store %2, %A[%i] : memref<10xf32>
12+
}
13+
return
14+
}

0 commit comments

Comments
 (0)