[Mlir-commits] [mlir] [mlir] Implement DestinationStyleOpInterface for scf::ForallOp (PR #66981)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Thu Sep 21 11:01:49 PDT 2023
================
@@ -3970,6 +3971,11 @@ struct FoldTensorCastProducerOp
if (isa<InsertSliceOp>(op.getOperation()))
return failure();
+ // scf::ForallOp also has its own folding logic taking the Types of its
+ // BlockArguments into consideration.
+ if (isa<scf::ForallOp>(op.getOperation()))
+ return failure();
+
----------------
MaheshRavishankar wrote:
I think you can just look for `LoopLikeOpInterface` here... That adds a dependence from `DestPassingStyleOpInterface` to `LoopLikeOpInterface`, but we might be able to live with that.
https://github.com/llvm/llvm-project/pull/66981
More information about the Mlir-commits
mailing list