[Mlir-commits] [mlir] Keep attributes on bufferization of execute_region. (PR #165381)
Matthias Springer
llvmlistbot at llvm.org
Tue Oct 28 14:47:46 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());
----------------
matthias-springer wrote:
There is currently no consensus on forwarding discardable attributes and projects are [working around](https://m-sp.org/downloads/mlir_workshop_2025.pdf) this issue downstream.
https://github.com/llvm/llvm-project/pull/165381
More information about the Mlir-commits
mailing list