[all-commits] [llvm/llvm-project] eaf258: [mlir][Linalg] Add support for min/max reduction v...
Diego Caballero via All-commits
all-commits at lists.llvm.org
Tue Oct 5 15:51:32 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: eaf2588a51bf2d36a6aec573cd92c351062fa7d5
https://github.com/llvm/llvm-project/commit/eaf2588a51bf2d36a6aec573cd92c351062fa7d5
Author: Diego Caballero <diegocaballero at google.com>
Date: 2021-10-05 (Tue, 05 Oct 2021)
Changed paths:
M mlir/include/mlir/Dialect/Vector/VectorOps.td
M mlir/lib/Conversion/VectorToLLVM/ConvertVectorToLLVM.cpp
M mlir/lib/Dialect/Linalg/Transforms/Vectorization.cpp
M mlir/lib/Dialect/Vector/VectorOps.cpp
M mlir/lib/Dialect/Vector/VectorTransforms.cpp
M mlir/test/Dialect/Linalg/vectorization.mlir
M mlir/test/Dialect/Vector/invalid.mlir
M mlir/test/Dialect/Vector/ops.mlir
M mlir/test/Dialect/Vector/vector-contract-matvec-transforms.mlir
M mlir/test/Dialect/Vector/vector-multi-reduction-outer-lowering.mlir
M mlir/test/Integration/Dialect/Vector/CPU/test-reductions-f32-reassoc.mlir
M mlir/test/Integration/Dialect/Vector/CPU/test-reductions-f32.mlir
M mlir/test/Integration/Dialect/Vector/CPU/test-reductions-f64-reassoc.mlir
M mlir/test/Integration/Dialect/Vector/CPU/test-reductions-f64.mlir
M mlir/test/Integration/Dialect/Vector/CPU/test-reductions-i32.mlir
M mlir/test/Integration/Dialect/Vector/CPU/test-reductions-i4.mlir
M mlir/test/Integration/Dialect/Vector/CPU/test-reductions-i64.mlir
M mlir/test/Integration/Dialect/Vector/CPU/test-reductions-si4.mlir
M mlir/test/Integration/Dialect/Vector/CPU/test-reductions-ui4.mlir
Log Message:
-----------
[mlir][Linalg] Add support for min/max reduction vectorization in linalg.generic
This patch extends Linalg core vectorization with support for min/max reductions
in linalg.generic ops. It enables the reduction detection for min/max combiner ops.
It also renames MIN/MAX combining kinds to MINS/MAXS to make the sign explicit for
floating point and signed integer types. MINU/MAXU should be introduce din the future
for unsigned integer types.
Reviewed By: pifon2a, ThomasRaoux
Differential Revision: https://reviews.llvm.org/D110854
More information about the All-commits
mailing list