[PATCH] D108353: [loop-idiom] Support memcpy instructions for memmove-like loops

Han Zhu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 19 00:24:32 PDT 2021


zhuhan0 created this revision.
Herald added subscribers: hoy, wenlei, hiraditya.
zhuhan0 requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Following https://reviews.llvm.org/D104464. In addition to load and store
instructions, also handle memcpy intrinsics in loop body. The constraints are
same as before (same base pointer, etc.).

Fixed the FIXME added in D104464 <https://reviews.llvm.org/D104464>, and added two more tests.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D108353

Files:
  llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp
  llvm/test/Transforms/LoopIdiom/basic.ll
  llvm/test/Transforms/LoopIdiom/memcpy-intrinsic.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D108353.367410.patch
Type: text/x-patch
Size: 9437 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210819/96dc1129/attachment.bin>


More information about the llvm-commits mailing list