[Mlir-commits] [mlir] [mlir][SCF] Carry discardable attributes in parallelForToNestedFors (PR #232951)

Alexander Shaposhnikov llvmlistbot at llvm.org
Fri Oct 16 14:52:25 PDT 2026


================
@@ -48,6 +48,9 @@ mlir::scf::parallelForToNestedFors(RewriterBase &rewriter,
       scf::buildLoopNest(rewriter, loc, lowerBounds, upperBounds, steps);
   for (scf::ForOp forOp : loopNest.loops)
     forOp.setUnsignedCmp(parallelOp.getUnsignedCmp());
+  if (!loopNest.loops.empty())
+    loopNest.loops.back()->setDiscardableAttrs(
+        parallelOp->getDiscardableAttrDictionary());
----------------
alexander-shaposhnikov wrote:

yeah, this is not right 

https://github.com/llvm/llvm-project/pull/232951


More information about the Mlir-commits mailing list