[Mlir-commits] [mlir] [MLIR][Vector] Allow any strided memref for one-element vector.load in lowering vector.gather (PR #122437)
Andrzej WarzyĆski
llvmlistbot at llvm.org
Fri Jan 10 08:51:35 PST 2025
================
@@ -205,11 +205,13 @@ struct Gather1DToConditionalLoads : OpRewritePattern<vector::GatherOp> {
Value condMask = op.getMask();
Value base = op.getBase();
- // vector.load requires the most minor memref dim to have unit stride
+ // vector.load requires the most minor memref dim to have unit stride,
+ // or the result vector type to have only one element
----------------
banach-space wrote:
```suggestion
// vector.load requires the most minor memref dim to have unit stride
// (unless reading exactly 1 element)
```
https://github.com/llvm/llvm-project/pull/122437
More information about the Mlir-commits
mailing list