[mlir][Linalg] NFC: Combine elementwise fusion test passes.
authorMahesh Ravishankar <ravishankarm@google.com>
Mon, 7 Feb 2022 17:45:28 +0000 (17:45 +0000)
committerMahesh Ravishankar <ravishankarm@google.com>
Mon, 7 Feb 2022 22:46:57 +0000 (22:46 +0000)
commitd730336411b59622a625510378cec0f9d23807c6
tree8b9bb5b97337298a8e0bdf8502c590e528370775
parentbf02586c57ced32ca66fd98fa3208b632820b1c6
[mlir][Linalg] NFC: Combine elementwise fusion test passes.

There are a few different test passes that check elementwise fusion in
Linalg. Consolidate them to a single pass controlled by different pass
options (in keeping with how `TestLinalgTransforms` exists).
mlir/test/Dialect/Linalg/fusion-elementwise-options.mlir
mlir/test/Dialect/Linalg/fusion-push-reshape.mlir
mlir/test/Dialect/Linalg/reshape_control_fusion.mlir
mlir/test/lib/Dialect/Linalg/TestLinalgElementwiseFusion.cpp
mlir/tools/mlir-opt/mlir-opt.cpp