remove another pointless noalias check: M is a memcpy, so the
source and dest are known to not overlap.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119692 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Transforms/Scalar/MemCpyOptimizer.cpp b/lib/Transforms/Scalar/MemCpyOptimizer.cpp
index cab8bac..ea29fca 100644
--- a/lib/Transforms/Scalar/MemCpyOptimizer.cpp
+++ b/lib/Transforms/Scalar/MemCpyOptimizer.cpp
@@ -691,8 +691,7 @@
// Finally, we have to make sure that the dest of the second does not
// alias the source of the first.
AliasAnalysis &AA = getAnalysis<AliasAnalysis>();
- if (!AA.isNoAlias(M->getRawDest(), MSize, MDep->getRawSource(), DepSize) ||
- !AA.isNoAlias(M->getRawDest(), MSize, M->getRawSource(), MSize))
+ if (!AA.isNoAlias(M->getRawDest(), MSize, MDep->getRawSource(), DepSize))
return false;
// If all checks passed, then we can transform these memcpy's