summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-03-23 22:06:41 +0000
committerChris Lattner <sabre@nondot.org>2005-03-23 22:06:41 +0000
commit07eac1e6984b7c5ded14f5a209e5fe5a39764d88 (patch)
tree617948e09ae8bbcd5a0c31b03ae44aababd6e430 /llvm/lib
parent9f9da538d6912254868b7ad311e97a5904551cdc (diff)
downloadbcm5719-llvm-07eac1e6984b7c5ded14f5a209e5fe5a39764d88.tar.gz
bcm5719-llvm-07eac1e6984b7c5ded14f5a209e5fe5a39764d88.zip
Make this a bit more aggressive
llvm-svn: 20792
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Analysis/AliasAnalysis.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/AliasAnalysis.cpp b/llvm/lib/Analysis/AliasAnalysis.cpp
index 43c86a5dc9e..da54c1b3da1 100644
--- a/llvm/lib/Analysis/AliasAnalysis.cpp
+++ b/llvm/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));
}
OpenPOWER on IntegriCloud