[PATCH] D76152: [LoopIdiom] memmove() on aliased pointers
Stefanos Baziotis via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 13 13:29:16 PDT 2020
baziotis created this revision.
baziotis added reviewers: chandlerc, lebedev.ri, asbirlea, sanjoy.
Herald added subscribers: llvm-commits, jfb, hiraditya.
Herald added a project: LLVM.
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.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D76152
Files:
llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp
llvm/test/Transforms/LoopIdiom/basic-address-space.ll
llvm/test/Transforms/LoopIdiom/basic.ll
llvm/test/Transforms/LoopIdiom/pr28196.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D76152.250280.patch
Type: text/x-patch
Size: 9783 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200313/41297fc0/attachment.bin>
More information about the llvm-commits
mailing list