[Mlir-commits] [mlir] [mlir][vector] Prevent folding non memref-type gather into maskedload (PR #135371)
Andrzej WarzyĆski
llvmlistbot at llvm.org
Fri Apr 11 09:38:22 PDT 2025
================
@@ -3149,6 +3149,18 @@ func.func @contiguous_gather_step(%base: memref<?xf32>,
// -----
+// CHECK-LABEL: @dont_fold_tensor_type_contiguous_gather
+func.func @dont_fold_tensor_type_contiguous_gather(%base: tensor<8xf32>, %mask: vector<4xi1>, %pass_thru: vector<4xf32>) -> vector<4xf32> {
----------------
banach-space wrote:
1. `no_fold` is shorter than `dont_fold` :)
2. The naming format seems to be `@contiguous_gather_{other_stuff}`, so `@dont_fold_tensor_type_contiguous_gather` -> `@no_fold_contiguous_gather_tensor` (or something similar)
https://github.com/llvm/llvm-project/pull/135371
More information about the Mlir-commits
mailing list