This is an archive of the discontinued LLVM Phabricator instance.

[flang][hlfir]: fix associate of expr with more than one use
ClosedPublic

Authored by tblah on Jul 7 2023, 7:38 AM.

Details

Summary

Make a copy of the expression and associate that so that this is the
only use.

So far as I know, we don't currently generate code for an associate with
more than one use. This is here just in case.

Depends on D154715

Diff Detail

Event Timeline

tblah created this revision.Jul 7 2023, 7:38 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptJul 7 2023, 7:38 AM
tblah requested review of this revision.Jul 7 2023, 7:38 AM
vzakhari accepted this revision.Jul 7 2023, 11:29 AM

Looks great!

This revision is now accepted and ready to land.Jul 7 2023, 11:29 AM