This is an archive of the discontinued LLVM Phabricator instance.

[flang] Check ArrayRef base for contiguity in IsSimplyContiguousHelper
ClosedPublic

Authored by jeanPerier on Nov 17 2021, 6:04 AM.

Details

Summary

Previous code was returning true for x(:) where x is a pointer without
the contiguous attribute.
In case the array ref is a whole array section, check the base for contiguity
to solve the issue.

Diff Detail

Event Timeline

jeanPerier created this revision.Nov 17 2021, 6:04 AM
jeanPerier requested review of this revision.Nov 17 2021, 6:04 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 17 2021, 6:04 AM
klausler accepted this revision.Nov 17 2021, 8:48 AM
This revision is now accepted and ready to land.Nov 17 2021, 8:48 AM