[all-commits] [llvm/llvm-project] f9070b: [mlir][vector] Enable CastAwayElementwiseLeadingOn...
Andrzej WarzyĆski via All-commits
all-commits at lists.llvm.org
Tue Aug 22 04:42:30 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: f9070b2dfbec1a337213a8c8901cb98cd0c09bef
https://github.com/llvm/llvm-project/commit/f9070b2dfbec1a337213a8c8901cb98cd0c09bef
Author: Andrzej Warzynski <andrzej.warzynski at arm.com>
Date: 2023-08-22 (Tue, 22 Aug 2023)
Changed paths:
M mlir/lib/Dialect/Vector/IR/VectorOps.cpp
M mlir/lib/Dialect/Vector/Transforms/VectorDropLeadUnitDim.cpp
M mlir/test/Dialect/Vector/vector-dropleadunitdim-transforms.mlir
M mlir/test/Dialect/Vector/vector-transforms.mlir
Log Message:
-----------
[mlir][vector] Enable CastAwayElementwiseLeadingOneDim for scalable vec
This patch effectively enables the CastAwayElementwiseLeadingOneDim
rewrite pattern for scalable vectors. To this end,
`ExtractOp::inferReturnTypes` is updated so that scalable dimensions are
correctly recognised.
The change to ExtractOp will likely make also other conversion patterns
valid for scalable vectors, but this patch focuses on just one case.
Other conversion patterns will be enabled in the forthcoming patches.
Depends on D157993
Differential Revision: https://reviews.llvm.org/D158335
More information about the All-commits
mailing list