[mlir][tensor] Add canonicalization for tensor.cast from extract_slice
authorThomas Raoux <thomasraoux@google.com>
Thu, 19 May 2022 13:55:18 +0000 (13:55 +0000)
committerThomas Raoux <thomasraoux@google.com>
Thu, 19 May 2022 17:34:59 +0000 (17:34 +0000)
commitf2676b151d6feb16d6f259ea8bac8ef16cc08f99
tree07f053fc61e43cbbeb7a1366083148aa7bf95e96
parentd640442518d5b095cbf10d4c8eae569425f0506e
[mlir][tensor] Add canonicalization for tensor.cast from extract_slice

Propagate static size information into extract_slice producer if
possible.

Differential Revision: https://reviews.llvm.org/D125972
mlir/lib/Dialect/Tensor/IR/TensorOps.cpp
mlir/test/Dialect/Linalg/tile-and-fuse-tensors.mlir
mlir/test/Dialect/Tensor/canonicalize.mlir