This is an archive of the discontinued LLVM Phabricator instance.

[LoopIdiom] memmove() on aliased pointers
Needs ReviewPublic

Authored by baziotis on Mar 13 2020, 12:58 PM.

Details

Summary

When trying to recognize memcpy(), if the store is aliased only by the load, then we can use memmove().

Note: Just yesterday I opened LoopIdiom pass for the first time, so I'm not super familiar. Definitely I want to check the tests
again and maybe add one or two.

Diff Detail

Event Timeline

baziotis created this revision.Mar 13 2020, 12:58 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 13 2020, 12:58 PM
lebedev.ri resigned from this revision.Mar 13 2020, 1:49 PM
sanjoy resigned from this revision.Jan 29 2022, 5:24 PM