[Mlir-commits] [mlir] [mlir][vector] Fix crash in `vector.insert` canonicalization (PR #97801)

Cullen Rhodes llvmlistbot at llvm.org
Fri Jul 5 07:44:22 PDT 2024


================
@@ -2729,3 +2729,14 @@ func.func @fold_vector_step_to_constant() -> vector<4xindex> {
   %0 = vector.step : vector<4xindex>
   return %0 : vector<4xindex>
 }
+
+// -----
+
+// CHECK-LABEL: func @vector_insert_regression(
+//       CHECK:   llvm.mlir.undef
+//       CHECK:   vector.insert
+func.func @vector_insert_regression(%arg0: i8) -> vector<4xi8> {
----------------
c-rhodes wrote:

nit: use more descriptive name than `regression` (`undef`?)

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


More information about the Mlir-commits mailing list