[Mlir-commits] [mlir] [mlir][linalg] do not break outs from block argument (PR #73572)
Mehdi Amini
llvmlistbot at llvm.org
Tue Nov 28 16:35:45 PST 2023
================
@@ -1818,6 +1818,11 @@ struct RemoveOutsDependency : public OpRewritePattern<GenericOp> {
if (sparse_tensor::getSparseTensorEncoding(operandVal.getType()))
continue;
+ // If outs is wired from a block argument, keep the dependency to
+ // prevent the argument from being optimized away.
----------------
joker-eph wrote:
Sorry, you'll need to elaborate: this outs isn't actually used, the "we need to keep this dependency as is" isn't clear to me.
https://github.com/llvm/llvm-project/pull/73572
More information about the Mlir-commits
mailing list