[all-commits] [llvm/llvm-project] 354adb: [mlir][vector] Extend `CreateMaskFolder` (#75842)
Andrzej Warzyński via All-commits
all-commits at lists.llvm.org
Wed Dec 20 03:09:08 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 354adb44c94c3660dcc709726e980d58e44afabc
https://github.com/llvm/llvm-project/commit/354adb44c94c3660dcc709726e980d58e44afabc
Author: Andrzej Warzyński <andrzej.warzynski at arm.com>
Date: 2023-12-20 (Wed, 20 Dec 2023)
Changed paths:
M mlir/lib/Dialect/Vector/IR/VectorOps.cpp
M mlir/test/Dialect/Vector/canonicalize.mlir
Log Message:
-----------
[mlir][vector] Extend `CreateMaskFolder` (#75842)
Extends `CreateMaskFolder` pattern so that the following:
```mlir
%c8 = arith.constant 8 : index
%c16 = arith.constant 16 : index
%0 = vector.vscale
%1 = arith.muli %0, %c16 : index
%10 = vector.create_mask %c8, %1 : vector<8x[16]xi1>
```
is folded as:
```mlir
%0 = vector.constant_mask [8, 16] : vector<8x[16]xi1>
```
More information about the All-commits
mailing list