[all-commits] [llvm/llvm-project] 2d4b99: [mlir][Linalg] Avoid unnecessary propagating prod...
MaheshRavishankar via All-commits
all-commits at lists.llvm.org
Mon Nov 21 23:13:05 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 2d4b998697fda9a0a213e5fb29f8af45a4828dc7
https://github.com/llvm/llvm-project/commit/2d4b998697fda9a0a213e5fb29f8af45a4828dc7
Author: Mahesh Ravishankar <ravishankarm at google.com>
Date: 2022-11-22 (Tue, 22 Nov 2022)
Changed paths:
M mlir/lib/Dialect/Linalg/IR/LinalgInterfaces.cpp
M mlir/lib/Dialect/Linalg/Transforms/ElementwiseOpFusion.cpp
M mlir/test/Dialect/Linalg/fusion-elementwise-options.mlir
A mlir/test/Dialect/Linalg/fusion-elementwise.mlir
M mlir/test/lib/Dialect/Linalg/TestLinalgElementwiseFusion.cpp
Log Message:
-----------
[mlir][Linalg] Avoid unnecessary propagating producer result to fused op result.
Elementwise op fusion conserves the result of the producer in the
fused op, relying on later clean up patterns to drop unused results of
the fused op. Instead, if the producer result has no other use apart
from the consumer op, avoid making the producer result available in
the fused node. This saves some unnecessary IR manipulations.
Differential Revision: https://reviews.llvm.org/D138096
More information about the All-commits
mailing list