projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
245b7f6
)
remove another pointless noalias check: M is a memcpy, so the
author
Chris Lattner
<sabre@nondot.org>
Thu, 18 Nov 2010 07:39:57 +0000
(07:39 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Thu, 18 Nov 2010 07:39:57 +0000
(07:39 +0000)
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
lib/Transforms/Scalar/MemCpyOptimizer.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Scalar/MemCpyOptimizer.cpp
b/lib/Transforms/Scalar/MemCpyOptimizer.cpp
index cab8bac0f94192351297d4d759be3a31980752c7..ea29fca346a10894fd657c6b3d1a1fefde2203cf 100644
(file)
--- a/
lib/Transforms/Scalar/MemCpyOptimizer.cpp
+++ b/
lib/Transforms/Scalar/MemCpyOptimizer.cpp
@@
-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