Adds support for .neqv. reductions with logical types.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
See comment inline.
flang/lib/Lower/OpenMP.cpp | ||
---|---|---|
1319 | This does not look correct. If .eqv. uses Value cmpiOp = builder.create<mlir::arith::CmpIOp>( loc, arith::CmpIPredicate::eq, op1I1, op2I1); then shouldn't .neqv. use Value cmpiOp = builder.create<mlir::arith::CmpIOp>( loc, arith::CmpIPredicate::ne, op1I1, op2I1); ? |
Comment Actions
LGTM. See Nit comment inline.
flang/test/Lower/OpenMP/wsloop-reduction-logical-neqv.f90 | ||
---|---|---|
43 | Nit: A better initial value for .neqv. tests is .false. here and in the other tests below. |
This does not look correct.
If .eqv. uses
then shouldn't .neqv. use
?
Note the different predicate used (eq vs ne).