[Mlir-commits] [mlir] [MLIR][SCFToOpenMP] Fix crash when lowering vector reductions (PR #173978)

Tom Eccles llvmlistbot at llvm.org
Mon Jan 5 08:04:17 PST 2026


================
@@ -0,0 +1,22 @@
+// RUN: mlir-opt %s --convert-scf-to-openmp | FileCheck %s
+
+// CHECK-LABEL: omp.declare_reduction @__scf_reduction : vector<2xi1> init
+// CHECK-NEXT:  ^bb0(%arg0: vector<2xi1>):
+// CHECK-NEXT:    %[[CONST:.*]] = llvm.mlir.constant(dense<true> : vector<2xi1>) : vector<2xi1>
+// CHECK-NEXT:    omp.yield(%[[CONST]] : vector<2xi1>)
----------------
tblah wrote:

Please could you also check the generation of the combiner region and add a CHECK-NOT for the atomic region.

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


More information about the Mlir-commits mailing list