This is an archive of the discontinued LLVM Phabricator instance.

[flang] Fix array substring emboxing code generation
ClosedPublic

Authored by jeanPerier on Jun 29 2023, 7:22 AM.

Details

Summary

The code generation of the fir.embox op creating descriptors for
array substring with a non constant length base was using the
substring length to compute the first dimension result stride.
Fix it to use the input length instead.

Diff Detail

Event Timeline

jeanPerier created this revision.Jun 29 2023, 7:22 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 29 2023, 7:22 AM
jeanPerier requested review of this revision.Jun 29 2023, 7:22 AM
PeteSteinfeld accepted this revision.Jun 29 2023, 8:16 AM

All builds and tests correctly and looks good.

This revision is now accepted and ready to land.Jun 29 2023, 8:16 AM
This revision was automatically updated to reflect the committed changes.