llvm-project/mlir/test/Dialect/Tensor
Gaurav Shukla 7d6ef5caef [mlir][tensor] Fold `tensor.cast` into `tensor.collapse_shape` op
This commit folds a `tensor.cast` op into a `tensor.collapse_shape` op
when following two conditions meet:
1. the `tensor.collapse_shape` op consumes result of the `tensor.cast` op.
2. `tensor.cast` op casts to a more dynamic version of the source tensor.
This is added as a canonicalization pattern in `tensor.collapse_shape` op.

Signed-Off-By: Gaurav Shukla <gaurav@nod-labs.com>

Reviewed By: mravishankar

Differential Revision: https://reviews.llvm.org/D130650
2022-07-28 13:11:43 +05:30
..
bufferize.mlir [mlir][memref] Improve type inference for rank-reducing subviews 2022-07-05 16:49:07 +02:00
canonicalize.mlir [mlir][tensor] Fold `tensor.cast` into `tensor.collapse_shape` op 2022-07-28 13:11:43 +05:30
fold-constant-extract-slice.mlir [mlir][NFC] Update textual references of `func` to `func.func` in Tensor/Tosa/Vector tests 2022-04-20 22:17:29 -07:00
invalid.mlir [mlir][NFC] Update remaining textual references of un-namespaced `func` operations 2022-04-20 22:17:31 -07:00
one-shot-bufferize-tensor-copy-insertion.mlir [mlir][bufferization][NFC] Make `escape` a dialect attribute 2022-06-23 19:34:47 +02:00
one-shot-bufferize.mlir [mlir][tensor][bufferize] Fix deallocation of GenerateOp/FromElementsOp 2022-07-25 12:25:06 +02:00
ops.mlir [mlir][NFC] Update textual references of `func` to `func.func` in Tensor/Tosa/Vector tests 2022-04-20 22:17:29 -07:00
resolve-shaped-type-result-dims.mlir [mlir][NFC] Update textual references of `func` to `func.func` in Tensor/Tosa/Vector tests 2022-04-20 22:17:29 -07:00
split-padding.mlir [mlir][NFC] Update textual references of `func` to `func.func` in Tensor/Tosa/Vector tests 2022-04-20 22:17:29 -07:00