This is an archive of the discontinued LLVM Phabricator instance.

[flang] Correct folding of SPREAD() for higher ranks
ClosedPublic

Authored by klausler on May 6 2022, 11:37 AM.

Details

Summary

The construction of the dimension order vector used to populate the
result array was incorrect, leading to a scrambled-looking result
for rank-3 and higher results. Fix, and extend tests.

Diff Detail

Event Timeline

klausler created this revision.May 6 2022, 11:37 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 6 2022, 11:37 AM
Herald added a subscriber: jdoerfert. · View Herald Transcript
klausler requested review of this revision.May 6 2022, 11:37 AM
PeteSteinfeld accepted this revision.May 6 2022, 2:32 PM

All builds and tests correctly and looks good.

This revision is now accepted and ready to land.May 6 2022, 2:32 PM
This revision was automatically updated to reflect the committed changes.