This is an archive of the discontinued LLVM Phabricator instance.

[mlir][Linalg] Canonicalize tensor_reshape(splat-constant) -> splat-constant.
ClosedPublic

Authored by mravishankar on Aug 17 2020, 3:57 PM.

Details

Summary

When the operand to the linalg.tensor_reshape op is a splat constant,
the result can be replaced with a splat constant of the same value but
different type.

Diff Detail