llvm-project
82004b07 - [mlir][SCF] Avoid crash in parallel loop unrolling test pass (#222644)

Commit
4 days ago
[mlir][SCF] Avoid crash in parallel loop unrolling test pass (#222644) This fixes crashes in `--test-parallel-loop-unrolling` when `unroll-factors` is missing or contains zero. Previously, the test pass forwarded an empty or invalid factor list to the parallel-loop unrolling utility, violating its preconditions and triggering an assertion. The pass now emits an error and signals pass failure when: * `unroll-factors` is not provided. * Any unroll factor is zero. Regression tests verify the diagnostics for both invalid inputs using `-verify-diagnostics`. Fixes #222535. Co-authored-by: Purnima Shrivastava <purnimashrivastava05@.com>
Author
Parents
Loading