[llvm] r309645 - Default MemoryLocation passed to getModRefInfo should be None (D35441)

Alina Sbirlea via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 31 17:47:17 PDT 2017


Author: asbirlea
Date: Mon Jul 31 17:47:17 2017
New Revision: 309645

URL: http://llvm.org/viewvc/llvm-project?rev=309645&view=rev
Log:
Default MemoryLocation passed to getModRefInfo should be None (D35441)

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=309645&r1=309644&r2=309645&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/MemCpyOptimizer.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/MemCpyOptimizer.cpp Mon Jul 31 17:47:17 2017
@@ -535,7 +535,7 @@ static bool moveUp(AliasAnalysis &AA, St
   for (auto I = --SI->getIterator(), E = P->getIterator(); I != E; --I) {
     auto *C = &*I;
 
-    bool MayAlias = AA.getModRefInfo(C, MemoryLocation()) != MRI_NoModRef;
+    bool MayAlias = AA.getModRefInfo(C, None) != MRI_NoModRef;
 
     bool NeedLift = false;
     if (Args.erase(C))




More information about the llvm-commits mailing list