[flang-commits] [flang] [flang][fir] Convert `fir.do_loop` with the unordered attribute to `scf.parallel`. (PR #168510)

Tom Eccles via flang-commits flang-commits at lists.llvm.org
Tue Nov 25 02:40:17 PST 2025


================
@@ -85,6 +85,10 @@ def FIRToSCFPass : Pass<"fir-to-scf"> {
   let dependentDialects = [
     "fir::FIROpsDialect", "mlir::scf::SCFDialect"
   ];
+  let options = [Option<"parallelUnordered", "parallel-unordered", "bool",
+                        /*default=*/"false",
+                        "Whether to convert `fir.do_loop` with the unordered "
+                        "attribute to `scf.parallel`. Defaults to false.">];
----------------
tblah wrote:

nit: please document that setting this to "true" is a potentially unsafe transformation

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


More information about the flang-commits mailing list