Skip to content

Commit 76fa22a

Browse files
committed
Address comments
1 parent f141bc9 commit 76fa22a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mlir/test/Dialect/Vector/vector-transferop-opt.mlir

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,7 @@ func.func @forward_dead_store_dynamic_same_index(
271271
%c0 = arith.constant 0 : index
272272
%cf0 = arith.constant 0.0 : f32
273273
vector.transfer_write %v0, %buffer[%i, %i] {in_bounds = [true]} : vector<4xf32>, memref<?x?xf32>
274+
// The following transfer op reads/writes to the same address so that we can forward.
274275
%0 = vector.transfer_read %buffer[%i, %i], %cf0 {in_bounds = [true]} : memref<?x?xf32>, vector<4xf32>
275276
%x = scf.for %i0 = %c0 to %c4 step %c1 iter_args(%acc = %0) -> (vector<4xf32>) {
276277
%1 = arith.addf %acc, %acc : vector<4xf32>

0 commit comments

Comments
 (0)