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
This commit is contained in:
Chris Lattner 2010-11-18 07:39:57 +00:00
parent 245b7f6ec2
commit 12f7085027

View File

@ -691,8 +691,7 @@ bool MemCpyOpt::processMemCpyMemCpyDependence(MemCpyInst *M, MemCpyInst *MDep,
// 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