This is an archive of the discontinued LLVM Phabricator instance.

[Intrinsics] Added writeonly attribute to the first arg of llvm.memmove
ClosedPublic

Authored by xbolva00 on Oct 19 2020, 1:14 PM.

Details

Summary

D18714 introduced writeonly attribute:

"Also start using the attribute for memset, memcpy, and memmove intrinsics,
and remove their special-casing in BasicAliasAnalysis."

But actually, writeonly was not attached to memmove - oversight, it seems.

So let's add it. As we can see, this helps DSE to eliminate redundant stores.

Diff Detail

Event Timeline

xbolva00 created this revision.Oct 19 2020, 1:14 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 19 2020, 1:14 PM
xbolva00 requested review of this revision.Oct 19 2020, 1:14 PM
xbolva00 edited reviewers, added: fhahn; removed: Florian.Oct 19 2020, 1:18 PM
This revision is now accepted and ready to land.Oct 19 2020, 1:27 PM