[Mlir-commits] [mlir] [mlir][ArmSME] Fix crash on empty vector.mask in arm-sme-vector-legalization (PR #118613)
Andrzej WarzyĆski
llvmlistbot at llvm.org
Wed Dec 4 07:47:49 PST 2024
================
@@ -646,3 +646,11 @@ func.func @negative_transpose_store_scalable_via_za__bad_source_shape(%vec: vect
vector.transfer_write %tr, %dest[%i, %j] {in_bounds = [true, true]} : vector<[7]x2xf32>, memref<?x?xf32>
return
}
+
+// -----
+
+// From: https://github.com/llvm/llvm-project/issues/118449 (check we don't crash).
+func.func @vector_mask_empty(%m0: vector<16x2xi1>, %arg1: vector<16x16xf32>) -> vector<16x16xf32> {
----------------
banach-space wrote:
1. I don't follow- the mask is not empty? (looking at test func name)
2. The convention in this file seems `%mask` rather than `%m0` for masks. Please update.
3. Replace `%arg1` with something more descriptive, consistent with what's already used in the file.
https://github.com/llvm/llvm-project/pull/118613
More information about the Mlir-commits
mailing list