This is an archive of the discontinued LLVM Phabricator instance.

[flang][hlfir] Apply MemAlloc effect to hlfir.elemental explicitly.
ClosedPublic

Authored by vzakhari on Aug 22 2023, 4:52 PM.

Details

Summary

Related to https://github.com/llvm/llvm-project/issues/64866.
This patch effectively disables CSE for identical hlfir.elemental
operations, because it causes hlfir.destroy to be applied twice
to the same temporary. Moreover, I think MemAlloc is correct
for hlfir.elemental, in general.

Diff Detail

Event Timeline

vzakhari created this revision.Aug 22 2023, 4:52 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 22 2023, 4:52 PM
Herald added a subscriber: jdoerfert. · View Herald Transcript
vzakhari requested review of this revision.Aug 22 2023, 4:52 PM

No noticeable performance changes with this patch.

tblah accepted this revision.Aug 23 2023, 2:54 AM

Thanks for this!

This revision is now accepted and ready to land.Aug 23 2023, 2:54 AM