[all-commits] [llvm/llvm-project] 1a2474: [mlir][Linalg] Disable init_tensor elimination by ...
Nicolas Vasilache via All-commits
all-commits at lists.llvm.org
Mon Jan 10 06:24:00 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 1a2474b786318c75cef1981eae38268f1701cf4e
https://github.com/llvm/llvm-project/commit/1a2474b786318c75cef1981eae38268f1701cf4e
Author: Nicolas Vasilache <ntv at google.com>
Date: 2022-01-10 (Mon, 10 Jan 2022)
Changed paths:
M mlir/include/mlir/Dialect/Linalg/Passes.td
M mlir/lib/Dialect/Linalg/Transforms/ComprehensiveBufferizePass.cpp
A mlir/test/Dialect/Linalg/comprehensive-module-bufferize-analysis-init-tensor-elimination.mlir
M mlir/test/Dialect/Linalg/comprehensive-module-bufferize-analysis.mlir
A mlir/test/Dialect/Linalg/comprehensive-module-bufferize-init-tensor-elimination.mlir
M mlir/test/Dialect/Linalg/comprehensive-module-bufferize.mlir
Log Message:
-----------
[mlir][Linalg] Disable init_tensor elimination by default
init_tensor elimination is arguably a pre-optimization that should be separated from comprehensive bufferization.
In any case it is still experimental and easily results in wrong IR with violated SSA def-use orderings.
Isolate the optimization behind a flag, separate the test cases and add a test case that would results in wrong IR.
Differential Revision: https://reviews.llvm.org/D116936
More information about the All-commits
mailing list