This is an archive of the discontinued LLVM Phabricator instance.

[MemCpyOpt] Move lifetime marker before call to enable call slot optimization
ClosedPublic

Authored by nikic on Oct 13 2022, 8:33 AM.

Details

Summary

Currently call slot optimization may be prevented because the lifetime markers for the destination only start after the call. In this case, rather than aborting the transform, we should move the lifetime.start before the call to enable the transform.

Diff Detail

Event Timeline

nikic created this revision.Oct 13 2022, 8:33 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 13 2022, 8:33 AM
Herald added a subscriber: hiraditya. · View Herald Transcript
nikic requested review of this revision.Oct 13 2022, 8:33 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 13 2022, 8:33 AM
alex added a subscriber: alex.Oct 13 2022, 8:44 AM
fhahn accepted this revision.Nov 5 2022, 3:50 PM

LGTM, thanks!

This revision is now accepted and ready to land.Nov 5 2022, 3:50 PM
This revision was landed with ongoing or failed builds.Nov 7 2022, 6:26 AM
This revision was automatically updated to reflect the committed changes.