[LoopIdiom] Transform loop containing memcpy to memmove
authorDawid Jurczak <dawid_jurek@vp.pl>
Tue, 5 Oct 2021 15:31:08 +0000 (17:31 +0200)
committerDawid Jurczak <dawid_jurek@vp.pl>
Fri, 8 Oct 2021 07:56:01 +0000 (09:56 +0200)
commitdd5991cc6f2d0b39716c4e6c9272596481f1c7ad
tree53005e40c314baa3840dd64ed96bb999a4d0898b
parent00c0ce0655da804c2ffb1a2a807052298032acc6
[LoopIdiom] Transform loop containing memcpy to memmove

The purpose of patch is to learn Loop Idiom Recognize pass how to recognize simple memmove patterns
in similar way like GCC does: https://godbolt.org/z/dKjGvTGff
It's follow-up of following change: https://reviews.llvm.org/D104464

Differential Revision: https://reviews.llvm.org/D107075
llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp
llvm/test/Transforms/LoopIdiom/basic.ll