This is an archive of the discontinued LLVM Phabricator instance.

[flang] Allow compiler directives for collapsed loops in OpenACC
ClosedPublic

Authored by unterumarmung on Aug 29 2022, 4:47 AM.

Details

Summary

If one tries to compile the attached test case code with flan,
the one will get an internal compiler error on CHECK(level == 0)
at the end of PrivatizeAssociatedLoopIndex function.
Other compilers (gfortran and nvfortran) build this code just fine.
This change fixes the ICE.

Diff Detail

Event Timeline

unterumarmung created this revision.Aug 29 2022, 4:47 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald Transcript
unterumarmung requested review of this revision.Aug 29 2022, 4:47 AM
clementval accepted this revision.Aug 29 2022, 5:04 AM

LGTM.

flang/lib/Semantics/resolve-directives.cpp
877
This revision is now accepted and ready to land.Aug 29 2022, 5:04 AM
unterumarmung marked an inline comment as done.Aug 29 2022, 8:20 AM

Thank you for the quick review!