diff options
| author | Gaurav Shukla <gaurav@nod-labs.com> | 2022-07-28 13:11:05 +0530 |
|---|---|---|
| committer | Prashant Kumar <prashant@nod-labs.com> | 2022-07-28 13:11:43 +0530 |
| commit | 7d6ef5caef80a24d170dee0f1fec54f3bc7fd979 (patch) | |
| tree | e7e30de6ceb9babd1ffe872569e0b8bd39c20fb1 /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPythonImpl.h | |
| parent | 8a61749f767e9af773051fc4f6dc99276fe189e3 (diff) | |
| download | llvm-7d6ef5caef80a24d170dee0f1fec54f3bc7fd979.zip llvm-7d6ef5caef80a24d170dee0f1fec54f3bc7fd979.tar.gz llvm-7d6ef5caef80a24d170dee0f1fec54f3bc7fd979.tar.bz2 | |
[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
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPythonImpl.h')
0 files changed, 0 insertions, 0 deletions
