[all-commits] [llvm/llvm-project] 455f71: [mlir] Convert `expand_shape` to more static form ...
Ian Wood via All-commits
all-commits at lists.llvm.org
Thu Oct 24 17:04:23 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 455f71d28541c3dcb628c4c6f7b53d6eae0f1829
https://github.com/llvm/llvm-project/commit/455f71d28541c3dcb628c4c6f7b53d6eae0f1829
Author: Ian Wood <75152913+IanWood1 at users.noreply.github.com>
Date: 2024-10-24 (Thu, 24 Oct 2024)
Changed paths:
M mlir/lib/Dialect/Tensor/IR/TensorOps.cpp
M mlir/test/Dialect/Tensor/canonicalize.mlir
Log Message:
-----------
[mlir] Convert `expand_shape` to more static form (#112265)
Add pattern that converts a `tensor.expand_shape` op to a more static
form.
This matches the pattern: `tensor.cast` -> `tensor.expand_shape` if it
has a foldable `tensor.cast` and some constant foldable `output_shape`
operands for the `tensor.expand_shape`. This makes the
`tensor.expand_shape` more static, as well as allowing the static
information to be propagated further down in the program.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list