[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 19:34:49 PDT 2021
hliao marked 2 inline comments as done.
hliao added inline comments.
================
Comment at: llvm/lib/Transforms/Scalar/MemCpyOptimizer.cpp:1571
+ MemoryLocation::getForSource(M)) &&
+ !AA->pointsToConstantMemory(MemoryLocation::getForSource(M)))
return false;
----------------
efriedma wrote:
> Is it possible to write this using getModRefInfo()? Something like `if (isModSet(AA->getModRefInfo(M, MemoryLocation::getForSource(M))))`.
Good point!
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D107605/new/
https://reviews.llvm.org/D107605
More information about the llvm-commits
mailing list