[Mlir-commits] [mlir] [mlir][SCF] Avoid crash in parallel loop unrolling test pass (PR #222644)
purnima shrivastava
llvmlistbot at llvm.org
Fri Sep 11 01:48:46 PDT 2026
================
@@ -1,7 +1,14 @@
+// RUN: mlir-opt %s -test-parallel-loop-unrolling -split-input-file | FileCheck %s --check-prefix=CHECK-NO-UNROLL
+// RUN: mlir-opt %s -test-parallel-loop-unrolling='unroll-factors=1,0' -split-input-file | FileCheck %s --check-prefix=CHECK-NO-UNROLL
// RUN: mlir-opt %s -test-parallel-loop-unrolling='unroll-factors=1,2' -split-input-file | FileCheck %s
// RUN: mlir-opt %s -test-parallel-loop-unrolling='unroll-factors=1,2 loop-depth=1' -split-input-file | FileCheck %s --check-prefix CHECK-UNROLL-INNER
// RUN: mlir-opt %s -test-parallel-loop-unrolling='unroll-factors=3,1' -split-input-file | FileCheck %s --check-prefix CHECK-UNROLL-BY-3
+// CHECK-NO-UNROLL-LABEL: func @unroll_simple_parallel_loop
+// CHECK-NO-UNROLL: [[C1:%.*]] = arith.constant 1 : index
+// CHECK-NO-UNROLL: scf.parallel {{.*}} step ([[C1]], [[C1]], [[C1]])
+// CHECK-NO-UNROLL-NOT: affine.apply
+// CHECK-NO-UNROLL: return
----------------
purnima-nlp wrote:
@FedericoBruzzone I have added error emission code for both checks.. should it be included only with that 0 checking one? I have changed the test file too as required ! thanks
https://github.com/llvm/llvm-project/pull/222644
More information about the Mlir-commits
mailing list