[Mlir-commits] [mlir] [OpenMP] Enable simd in non-reduction composite constructs (PR #146097)
Kajetan Puchalski
llvmlistbot at llvm.org
Tue Jul 1 09:12:26 PDT 2025
mrkajetanp wrote:
> Would it be an issue to only emit warnings for `reduction` and `if` clauses when processing standalone `simd` constructs too?
The current behaviour is that if we have simd with one of those closes in a composite construct, then simd gets ignored along with the clauses. Are you saying we should do the same for standalone simd? That would effectively make standalone simd with one of said clauses a no-op. If so then it's very easy to implement, we can just achieve it with this:
```
- if (simdOp.isComposite() &&
- (simdOp.getReductionByref().has_value() || simdOp.getIfExpr())) {
+ if (simdOp.getReductionByref().has_value() || simdOp.getIfExpr()) {
```
https://github.com/llvm/llvm-project/pull/146097
More information about the Mlir-commits
mailing list