File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -198,6 +198,20 @@ func.func @test_prefetch(%arg0 : index, %arg1 : index) {
198198
199199// -----
200200
201+ // Test with load affine map with same SSA name.
202+ func.func @test_load_same_ssa_name () {
203+ %0 = memref.alloc () : memref <10 x10 xf32 >
204+ affine.for %i0 = 0 to 100 {
205+ %i2:2 = affine.delinearize_index %i0 into (10 , 10 ) : index , index
206+ %1 = affine.load %0 [%i2#0 , %i2#1 ] : memref <10 x10 xf32 >
207+ // CHECK: %{{.*}} = affine.load %{{.*}}[%{{.*}}, %{{.*}}] : memref<10x10xf32>
208+ affine.store %1 , %0 [%i2#0 , %i2#1 ] : memref <10 x10 xf32 >
209+ }
210+ return
211+ }
212+
213+ // -----
214+
201215// Test with just loop IVs.
202216func.func @vector_load_vector_store_iv () {
203217 %0 = memref.alloc () : memref <100 x100 xf32 >
You can’t perform that action at this time.
0 commit comments