[llvm-commits] [llvm] r119692 - /llvm/trunk/lib/Transforms/Scalar/MemCpyOptimizer.cpp
Chris Lattner
sabre at nondot.org
Wed Nov 17 23:39:57 PST 2010
Author: lattner
Date: Thu Nov 18 01:39:57 2010
New Revision: 119692
URL: http://llvm.org/viewvc/llvm-project?rev=119692&view=rev
Log:
remove another pointless noalias check: M is a memcpy, so the
source and dest are known to not overlap.
Modified:
llvm/trunk/lib/Transforms/Scalar/MemCpyOptimizer.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/MemCpyOptimizer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/MemCpyOptimizer.cpp?rev=119692&r1=119691&r2=119692&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/MemCpyOptimizer.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/MemCpyOptimizer.cpp Thu Nov 18 01:39:57 2010
@@ -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
More information about the llvm-commits
mailing list