forked from OSchip/llvm-project
![]() 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 |
||
---|---|---|
.. | ||
bufferize.mlir | ||
canonicalize.mlir | ||
fold-constant-extract-slice.mlir | ||
invalid.mlir | ||
one-shot-bufferize-tensor-copy-insertion.mlir | ||
one-shot-bufferize.mlir | ||
ops.mlir | ||
resolve-shaped-type-result-dims.mlir | ||
split-padding.mlir |