[all-commits] [llvm/llvm-project] e2b365: [mlir][Linalg] Break unnecessary dependency throug...
MaheshRavishankar via All-commits
all-commits at lists.llvm.org
Tue May 18 22:32:11 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: e2b365948b363636624d5c8cf631f075b19351aa
https://github.com/llvm/llvm-project/commit/e2b365948b363636624d5c8cf631f075b19351aa
Author: MaheshRavishankar <ravishankarm at google.com>
Date: 2021-05-18 (Tue, 18 May 2021)
Changed paths:
M mlir/lib/Dialect/Linalg/Transforms/FusionOnTensors.cpp
M mlir/test/Dialect/Linalg/fusion-tensor.mlir
M mlir/test/Dialect/Linalg/reshape_fusion.mlir
Log Message:
-----------
[mlir][Linalg] Break unnecessary dependency through unused `outs` tensor.
LinalgOps that are all parallel do not use the value of `outs`
tensor. The semantics is that the `outs` tensor is fully
overwritten. Using anything other than `init_tensor` can add false
dependencies between operations, when the use is just for the shape of
the tensor. Adding a canonicalization to always use `init_tensor` in
such cases, breaks this dependence.
Differential Revision: https://reviews.llvm.org/D102561
More information about the All-commits
mailing list