[Mlir-commits] [mlir] [mlir][vector] Add extra check on distribute types to avoid crashes (PR #102952)
Han-Chung Wang
llvmlistbot at llvm.org
Tue Aug 13 14:02:09 PDT 2024
================
@@ -620,6 +620,38 @@ func.func @vector_reduction(%laneid: index) -> (f32) {
// -----
+// CHECK-PROP-LABEL: func @warp_distribute(
+// CHECK-PROP-SAME: %[[ID:.*]]: index, %[[SRC:.+]]: memref<128xf32>, %[[DEST:.+]]: memref<128xf32>)
----------------
hanhanW wrote:
Here is a trick that we don't need to capture types in the checks:
```mlir
// CHECK-PROP-SAME: %[[ID:[a-zA-Z0-9]+]]
// CHECK-PROP-SAME: %[[SRC:[a-zA-Z0-9]+]]
// CHECK-PROP-SAME: %[[DEST:[a-zA-Z0-9]+]]
```
https://github.com/llvm/llvm-project/pull/102952
More information about the Mlir-commits
mailing list