diff --git a/mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp b/mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp --- a/mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp +++ b/mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp @@ -1614,7 +1614,7 @@ TransposeOp::getRegionBuilder() { return [](mlir::ImplicitLocOpBuilder &b, mlir::Block &block, mlir::ArrayRef) { - b.create(block.getArguments().back()); + b.create(block.getArguments().front()); }; } diff --git a/mlir/test/Dialect/Linalg/vectorization.mlir b/mlir/test/Dialect/Linalg/vectorization.mlir --- a/mlir/test/Dialect/Linalg/vectorization.mlir +++ b/mlir/test/Dialect/Linalg/vectorization.mlir @@ -1556,9 +1556,7 @@ return } // CHECK-LABEL: func @vectorize_transpose -// CHECK: %[[FIRST:.*]] = vector.transpose -// CHECK-SAME: [2, 0, 1] : vector<32x64x16xf32> to vector<16x32x64xf32> -// CHECK-NEXT: vector.transpose %[[FIRST]] +// CHECK: vector.transpose // CHECK-SAME: [1, 2, 0] : vector<16x32x64xf32> to vector<32x64x16xf32> transform.sequence failures(propagate) { diff --git a/mlir/test/Interfaces/TilingInterface/lower-to-loops-using-interface.mlir b/mlir/test/Interfaces/TilingInterface/lower-to-loops-using-interface.mlir --- a/mlir/test/Interfaces/TilingInterface/lower-to-loops-using-interface.mlir +++ b/mlir/test/Interfaces/TilingInterface/lower-to-loops-using-interface.mlir @@ -208,7 +208,7 @@ // CHECK: scf.for %[[I:.*]] = %[[C0]] to %[[C16]] step %[[C1]] { // CHECK: scf.for %[[J:.*]] = %[[C0]] to %[[C32]] step %[[C1]] { // CHECK: scf.for %[[K:.*]] = %[[C0]] to %[[C64]] step %[[C1]] { -// CHECK: %[[ELEM:.*]] = memref.load %[[OUT]][%[[J]], %[[K]], %[[I]]] +// CHECK: %[[ELEM:.*]] = memref.load %[[IN]][%[[I]], %[[J]], %[[K]]] // CHECK: memref.store %[[ELEM]], %[[OUT]][%[[J]], %[[K]], %[[I]]] // -----