Add lowering support for the min operator
in reduction clause.
Depends on D151565
Paths
| Differential D151671
[flang][openacc] Add lowering for min operator ClosedPublic Authored by clementval on May 29 2023, 8:00 PM.
Details
Diff Detail
Event TimelineHerald added projects: Restricted Project, Restricted Project. · View Herald TranscriptMay 29 2023, 8:00 PM
This revision is now accepted and ready to land.Jun 14 2023, 5:29 AM jeanPerier added a child revision: D151672: [flang][openacc] Add lowering for max operator.Jun 14 2023, 5:33 AM Closed by commit rGc1ca4d6fe788: [flang][openacc] Add lowering for min operator (authored by clementval). · Explain WhyJun 14 2023, 8:18 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 531347 flang/include/flang/Lower/OpenACC.h
flang/lib/Lower/OpenACC.cpp
flang/test/Lower/OpenACC/acc-reduction.f90
|
I think there's a way to check for signedness on integer type. It might make sense to add assert here and ensure that F18 marks that flag on integer type it produces. I am okay doing it in a separate patch. I just don't feel right to try to get the max signed value without additional checking.