[llvm] [MemCpyOpt] Drop dead `memmove` calls on `memset`'d source data (PR #101930)
Arthur Eubanks via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 28 11:18:34 PDT 2024
================
@@ -1854,12 +1855,53 @@ bool MemCpyOptPass::processMemCpy(MemCpyInst *M, BasicBlock::iterator &BBI) {
return false;
}
+/// Memmove calls with overlapping src/dest buffers that come after a memset may
+/// be removed.
+bool MemCpyOptPass::mayBeMemMoveMemSetDependency(MemMoveInst *M) {
----------------
aeubanks wrote:
`may` in the function name is not strong enough, it should be something like `isMemMove...`
https://github.com/llvm/llvm-project/pull/101930
More information about the llvm-commits
mailing list