[all-commits] [llvm/llvm-project] f5f1a5: [mlir][Linalg] Handle fusion on tensors for projec...
Han-Chung Wang via All-commits
all-commits at lists.llvm.org
Thu Dec 3 23:11:57 PST 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: f5f1a5c2448e31f3c7e6f85b378372a02f8d3e43
https://github.com/llvm/llvm-project/commit/f5f1a5c2448e31f3c7e6f85b378372a02f8d3e43
Author: Hanhan Wang <hanchung at google.com>
Date: 2020-12-03 (Thu, 03 Dec 2020)
Changed paths:
M mlir/include/mlir/Dialect/Linalg/Utils/Utils.h
M mlir/lib/Dialect/Linalg/Transforms/FusionOnTensors.cpp
M mlir/lib/Dialect/Linalg/Utils/Utils.cpp
M mlir/test/Dialect/Linalg/reshape_fusion.mlir
Log Message:
-----------
[mlir][Linalg] Handle fusion on tensors for projected permutation.
In the past, the reshape op can be folded only if the indexing map is
permutation in consumer's usage. We can relax to condition to be projected
permutation.
This patch still limits the fusion for scalar cases. Scalar case is a corner
case, because we need to decide where to put extra dims.
Reviewed By: mravishankar
Differential Revision: https://reviews.llvm.org/D92466
More information about the All-commits
mailing list