This is an archive of the discontinued LLVM Phabricator instance.

[flang][HLFIR] allow hlfir.get_length with hlfir.associate
ClosedPublic

Authored by tblah on Jul 11 2023, 3:40 AM.

Details

Summary

hlfir.get_length will not modify the buffer and so it is safe for a
hlfir.associate using the same expression buffer not to make its own
copy.

Diff Detail

Event Timeline

tblah created this revision.Jul 11 2023, 3:40 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptJul 11 2023, 3:40 AM
tblah requested review of this revision.Jul 11 2023, 3:40 AM
tblah updated this revision to Diff 539046.Jul 11 2023, 5:56 AM

Adding a unit test. This test would have passed anyway because of the other hlfir.associate changes. It is just here for completeness.

vzakhari accepted this revision.Jul 11 2023, 8:58 AM

Thank you! I got distracted by other things :)

This revision is now accepted and ready to land.Jul 11 2023, 8:58 AM
This revision was automatically updated to reflect the committed changes.