[PATCH] D107605: [MemCpyOpt] Teach memcpyopt to handle loads from the constant memory.
Michael Liao via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 5 14:55:06 PDT 2021
hliao created this revision.
hliao added reviewers: nikic, asbirlea, tra, efriedma.
Herald added a subscriber: hiraditya.
hliao requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
- Loads from the constant memory (either explicit one or as the source of memory transfer intrinsics) won't alias any stores.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D107605
Files:
llvm/lib/Transforms/Scalar/MemCpyOptimizer.cpp
llvm/test/Transforms/MemCpyOpt/load-store-to-memcpy.ll
llvm/test/Transforms/MemCpyOpt/memcpy.ll
llvm/test/Transforms/MemCpyOpt/memmove.ll
llvm/test/Transforms/MemCpyOpt/memset-memcpy-redundant-memset.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D107605.364624.patch
Type: text/x-patch
Size: 9754 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210805/af1fff3b/attachment.bin>
More information about the llvm-commits
mailing list