Make this a bit more aggressive
authorChris Lattner <sabre@nondot.org>
Wed, 23 Mar 2005 22:06:41 +0000 (22:06 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 23 Mar 2005 22:06:41 +0000 (22:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20792 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/AliasAnalysis.cpp

index 43c86a5dc9e96a2d82d4c5eed202d9b230190e47..da54c1b3da1e5e5fc610e738d900135603ee8b0d 100644 (file)
@@ -125,7 +125,7 @@ AliasAnalysis::getModRefInfo(CallSite CS, Value *P, unsigned Size) {
   // If P points to a constant memory location, the call definitely could not
   // modify the memory location.
   if ((Mask & Mod) && AA->pointsToConstantMemory(P))
-    Mask = Ref;
+    Mask = ModRefResult(Mask & ~Mod);
 
   return ModRefResult(Mask & AA->getModRefInfo(CS, P, Size));
 }