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
Paths
| Differential D154721
[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 So far as I know, we don't currently generate code for an associate with Depends on D154715
Diff Detail
Event TimelineHerald added projects: Restricted Project, Restricted Project. · View Herald TranscriptJul 7 2023, 7:38 AM This revision is now accepted and ready to land.Jul 7 2023, 11:29 AM Closed by commit rGa3f9ce69eeb2: [flang][hlfir]: fix associate of expr with more than one use (authored by tblah). · Explain WhyJul 11 2023, 3:34 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 539004 flang/lib/Optimizer/HLFIR/Transforms/BufferizeHLFIR.cpp
flang/test/HLFIR/associate-codegen.fir
|