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

Mehdi Amini llvmlistbot at llvm.org
Tue Oct 28 09:45:43 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());
----------------
joker-eph wrote:

Also, the API should be `setDiscardableAttrs(getDiscardableAttrs())`

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


More information about the Mlir-commits mailing list