Re-apply "[mlir][SparseTensor] Add a few more tests for sparse vectorization"
authorQuentin Colombet <quentin.colombet@gmail.com>
Fri, 13 Jan 2023 10:32:54 +0000 (10:32 +0000)
committerQuentin Colombet <quentin.colombet@gmail.com>
Fri, 13 Jan 2023 13:02:19 +0000 (13:02 +0000)
commitadd43ff1805d808dd4a6946218005395991884fe
treecce0ce2bd593ea90598787930b720a44006903a1
parent5fcdf7623f413aa5985252eb93ecd72efe6b485a
Re-apply "[mlir][SparseTensor] Add a few more tests for sparse vectorization"

This reverts commit 93f40c983e0adbb63cbb7c59814090134d691dd1.

Update the tests to also work on window.
The order in which the `arith.constant`s appear in the output IR is
slightly different between window and linux.
Use CHECK.*-DAG for the constants.

Original message:
These tests cover muli, xor, and, addf, subf, and addi.

The tests themselves are not that interesting, their goal is to provide
code coverage for all the types of reductions currently supported.

NFC

Differential Revision: https://reviews.llvm.org/D141369
mlir/test/Dialect/SparseTensor/vectorize_reduction.mlir