[all-commits] [llvm/llvm-project] a65a50: [mlir][Linalg] Canonicalize tensor_reshape(splat-c...
MaheshRavishankar via All-commits
all-commits at lists.llvm.org
Tue Aug 18 08:17:50 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: a65a50540e3b5dd1938a1d14f31b912a311537fb
https://github.com/llvm/llvm-project/commit/a65a50540e3b5dd1938a1d14f31b912a311537fb
Author: MaheshRavishankar <ravishankarm at google.com>
Date: 2020-08-18 (Tue, 18 Aug 2020)
Changed paths:
M mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp
M mlir/test/Dialect/Linalg/canonicalize.mlir
Log Message:
-----------
[mlir][Linalg] Canonicalize tensor_reshape(splat-constant) -> splat-constant.
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.
Differential Revision: https://reviews.llvm.org/D86117
More information about the All-commits
mailing list