[Mlir-commits] [mlir] [MLIR] Add `InParallelOpInterface` for parallel combining operations (PR #157736)
Quinn Dawkins
llvmlistbot at llvm.org
Wed Sep 10 07:12:06 PDT 2025
================
@@ -219,8 +219,10 @@ struct InsertSliceOfInsertSliceFolder : public OpRewritePattern<OpTy> {
// point outside: only tensor.parallel_insert_slice ops are allowed in
// there.
if (std::is_same_v<OpTy, tensor::ParallelInsertSliceOp>) {
- rewriter.setInsertionPoint(
- insertSliceOp->template getParentOfType<scf::InParallelOp>());
+ if (auto combiningParent = dyn_cast<ParallelCombiningOpInterface>(
+ insertSliceOp->getParentOp())) {
----------------
qedawkins wrote:
Same here
https://github.com/llvm/llvm-project/pull/157736
More information about the Mlir-commits
mailing list