[Mlir-commits] [mlir] [SCF] add debug label for MergeNestedParallelLoops pattern (PR #135980)

Ivan Butygin llvmlistbot at llvm.org
Wed Apr 16 15:59:52 PDT 2025


Hardcode84 wrote:

I have no objections to the patch itself, but it's not very robust. If you really want to prevent nested loops merging I would suggest instead of using custom attributes on `parallel` op, introduce a custom region op to encode info:

```
scf.parallel ... {
    my_region_op {
        scf.parallel ... {
            ...
        }
    }
}
```
This worked good for us downstream

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


More information about the Mlir-commits mailing list