Fix typo in lower_vector_transfers.mlir

PiperOrigin-RevId: 229010160
This commit is contained in:
Nicolas Vasilache 2019-01-12 04:28:45 -08:00 committed by jpienaar
parent d734c50c5f
commit 0ab81776aa
1 changed files with 2 additions and 2 deletions

View File

@ -11,9 +11,9 @@ func @materialize_read_1d() {
%f1 = vector_transfer_read %A, %i0, %i1 {permutation_map: (d0, d1) -> (d0)} : (memref<7x42xf32>, index, index) -> vector<4xf32>
%ip1 = affine_apply (d0) -> (d0 + 1) (%i1)
%f2 = vector_transfer_read %A, %i0, %ip1 {permutation_map: (d0, d1) -> (d0)} : (memref<7x42xf32>, index, index) -> vector<4xf32>
%ip2 = affine_apply (d0) -> (d0 + 1) (%i1)
%ip2 = affine_apply (d0) -> (d0 + 2) (%i1)
%f3 = vector_transfer_read %A, %i0, %ip2 {permutation_map: (d0, d1) -> (d0)} : (memref<7x42xf32>, index, index) -> vector<4xf32>
%ip3 = affine_apply (d0) -> (d0 + 1) (%i1)
%ip3 = affine_apply (d0) -> (d0 + 3) (%i1)
%f4 = vector_transfer_read %A, %i0, %ip3 {permutation_map: (d0, d1) -> (d0)} : (memref<7x42xf32>, index, index) -> vector<4xf32>
// Both accesses in the load must be clipped otherwise %i1 + 2 and %i1 + 3 will go out of bounds.
// CHECK: {{.*}} = select