This is an archive of the discontinued LLVM Phabricator instance.

[flang][hlfir] deref pointers before lowering assignment to hlfir.assign
ClosedPublic

Authored by jeanPerier on Feb 6 2023, 12:32 AM.

Details

Summary

There is little point not to dereference pointers LHS and RHS before
before emitting an hlfir.assign when lowering an assignment.
This pushes complexity and descriptor read side effects that are better
expressed in a load before the assignment.

Diff Detail

Event Timeline

jeanPerier created this revision.Feb 6 2023, 12:32 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 6 2023, 12:32 AM
jeanPerier requested review of this revision.Feb 6 2023, 12:32 AM
This revision is now accepted and ready to land.Feb 6 2023, 5:45 AM