[PATCH] D81229: Correctly report modified status for MemCpyOptimizer
serge via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 5 01:03:42 PDT 2020
serge-sans-paille created this revision.
serge-sans-paille added reviewers: deadalnix, foad, nikic, jdoerfert.
Herald added subscribers: llvm-commits, hiraditya.
Herald added a project: LLVM.
Related to https://reviews.llvm.org/D80916
https://reviews.llvm.org/D81229
Files:
llvm/lib/Transforms/Scalar/MemCpyOptimizer.cpp
Index: llvm/lib/Transforms/Scalar/MemCpyOptimizer.cpp
===================================================================
--- llvm/lib/Transforms/Scalar/MemCpyOptimizer.cpp
+++ llvm/lib/Transforms/Scalar/MemCpyOptimizer.cpp
@@ -1105,7 +1105,7 @@
if (M->getSource() == M->getDest()) {
MD->removeInstruction(M);
M->eraseFromParent();
- return false;
+ return true;
}
// If copying from a constant, try to turn the memcpy into a memset.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D81229.268681.patch
Type: text/x-patch
Size: 461 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200605/d165c070/attachment-0001.bin>
More information about the llvm-commits
mailing list