[mlir][Linalg] Enable vectorization of 'mul', 'and', 'or' and 'xor' reductions
authorDiego Caballero <diegocaballero@google.com>
Tue, 12 Oct 2021 20:46:08 +0000 (20:46 +0000)
committerDiego Caballero <diegocaballero@google.com>
Tue, 12 Oct 2021 21:08:23 +0000 (21:08 +0000)
commiteeb09fd6465e3ee4d564fb0ab948231baf1daadd
treee2c46d8f0b906699a61d16b420f7d3e84dbf5f29
parent5c1d356c18c3ef9e63cf9607af660fb0b1c8a6ca
[mlir][Linalg] Enable vectorization of 'mul', 'and', 'or' and 'xor' reductions

This patch adds support for vectorizing 'mul', 'and', 'or' anx 'xor' reductions
to Linalg.

Reviewed By: pifon2a, ThomasRaoux, aartbik

Differential Revision: https://reviews.llvm.org/D111565
mlir/lib/Dialect/Linalg/Transforms/Vectorization.cpp
mlir/test/Dialect/Linalg/vectorization.mlir