From: Chris Lattner Date: Wed, 23 Mar 2005 22:06:41 +0000 (+0000) Subject: Make this a bit more aggressive X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=d433bde071c6056295db73944df348b843c1989c;p=oota-llvm.git Make this a bit more aggressive git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20792 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Analysis/AliasAnalysis.cpp b/lib/Analysis/AliasAnalysis.cpp index 43c86a5dc9e..da54c1b3da1 100644 --- a/lib/Analysis/AliasAnalysis.cpp +++ b/lib/Analysis/AliasAnalysis.cpp @@ -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)); }