Only ops with a static tensor type and a constant yield value are rewritten.
Depends On: D152455
Paths
| Differential D152511
[mlir][tensor] Add pattern to rewrite tensor.generate as a constant ClosedPublic Authored by springerm on Jun 9 2023, 2:54 AM.
Details Summary Only ops with a static tensor type and a constant yield value are rewritten. Depends On: D152455
Diff Detail
Event Timelinespringerm added a parent revision: D152455: [mlir][tensor] Add option to fold only tensor.empty with a single use.Jun 9 2023, 2:54 AM This revision is now accepted and ready to land.Jun 9 2023, 3:22 AM This revision was landed with ongoing or failed builds.Jun 9 2023, 3:56 AM Closed by commit rG934099670613: [mlir][tensor] Add pattern to rewrite tensor.generate as a constant (authored by springerm). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 529897 mlir/include/mlir/Dialect/Tensor/TransformOps/TensorTransformOps.td
mlir/include/mlir/Dialect/Tensor/Transforms/Transforms.h
mlir/lib/Dialect/Tensor/TransformOps/TensorTransformOps.cpp
mlir/lib/Dialect/Tensor/Transforms/CMakeLists.txt
mlir/lib/Dialect/Tensor/Transforms/RewriteAsConstant.cpp
mlir/test/Dialect/Tensor/rewrite-as-constant.mlir
|