[Mlir-commits] [mlir] [mlir][Vector] Fix an assertion on failing cast in vector-transfer-flatten-patterns (PR #86030)

Balaji V. Iyer. llvmlistbot at llvm.org
Mon Mar 25 09:44:10 PDT 2024


================
@@ -90,3 +90,16 @@ func.func @test_index_no_linearize(%arg0: vector<2x2xindex>, %arg1: vector<2x2xi
     %0 = arith.addi %arg0, %arg1 : vector<2x2xindex>
     return %0 : vector<2x2xindex>
 }
+
+// -----
+
+// This test exists to make sure it doesn't hit an assert and compiles through.
----------------
bviyer wrote:

As you suggested, I removed the comment, nenamed the function more appropriately, added a comment about what this function tests and add check lines. Does this sound good to you?

https://github.com/llvm/llvm-project/pull/86030


More information about the Mlir-commits mailing list