[Mlir-commits] [mlir] Keep attributes on bufferization of execute_region. (PR #165381)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Tue Oct 28 14:08:27 PDT 2025


================
@@ -190,6 +190,7 @@ struct ExecuteRegionOpInterface
     // Create new op and move over region.
     auto newOp = scf::ExecuteRegionOp::create(
         rewriter, op->getLoc(), newResultTypes, executeRegionOp.getNoInline());
+    newOp->setAttrs(executeRegionOp->getAttrs());
----------------
ddubov100 wrote:

What is the agreed process of forwarding discardable attributes in case in my project I need it?

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


More information about the Mlir-commits mailing list