llvm-project
e485a5d3 - [MLIR][SCFToOpenMP] Fix crash when scf.parallel uses non-LLVM-compatible reduction type (#188559)

Commit
34 days ago
[MLIR][SCFToOpenMP] Fix crash when scf.parallel uses non-LLVM-compatible reduction type (#188559) Replace the assert in ParallelOpLowering::matchAndRewrite that fires when an scf.parallel reduction init value has a type incompatible with LLVM (e.g. index) with an early notifyMatchFailure call, so the pass fails gracefully instead of crashing. Add a regression test that verifies the pass emits an error instead of asserting. Fixes #61342 Assisted-by: Claude Code
Author
Parents
Loading