mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-27 02:31:09 +00:00
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:
parent
245b7f6ec2
commit
12f7085027
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user