Page MenuHomePhabricator

[NFC][Flang] Add simd collapse test case
ClosedPublic

Authored by domada on Aug 17 2022, 4:18 AM.

Details

Summary

Flang supports lowering collapse clause to MLIR for worksharing loops and simd loops. Simd collapse clause is represented in MLIR code as a simd-loop having a list of indices, bounds and steps where the size of the list is equal to the collapse value.

Support for simd collapse clause was added by several patches:

Diff Detail

Event Timeline

domada created this revision.Aug 17 2022, 4:18 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptAug 17 2022, 4:18 AM
domada requested review of this revision.Aug 17 2022, 4:18 AM

LGTM.

flang/test/Lower/OpenMP/simd.f90
97–98

Nit: These two are not used and can be removed.

106–108

Nit: Use CHECK-SAME

This revision is now accepted and ready to land.Aug 17 2022, 4:27 AM
This revision was automatically updated to reflect the committed changes.