diff options
author | Ian Wood <75152913+IanWood1@users.noreply.github.com> | 2024-10-24 17:04:02 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-24 17:04:02 -0700 |
commit | 455f71d28541c3dcb628c4c6f7b53d6eae0f1829 (patch) | |
tree | 8e1e8c90b8fb9b0ac325920e07517a293c07a480 /flang/lib/Frontend/CompilerInvocation.cpp | |
parent | 8c2e8b5124a0365664bb79b0caa9cec74d8148ff (diff) | |
download | llvm-455f71d28541c3dcb628c4c6f7b53d6eae0f1829.zip llvm-455f71d28541c3dcb628c4c6f7b53d6eae0f1829.tar.gz llvm-455f71d28541c3dcb628c4c6f7b53d6eae0f1829.tar.bz2 |
[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.
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions