aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Analysis/AliasAnalysis.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-10-25 16:29:52 +0000
committerDan Gohman <gohman@apple.com>2010-10-25 16:29:52 +0000
commitabaf2d8d3bea4e68df9e07f98a73507a56c7cdca (patch)
tree607a0c16e98b2709f4143c13d004320a9f7959d2 /llvm/lib/Analysis/AliasAnalysis.cpp
parent1b2d372b9f6d47343dacec116f4ae9deeed35c57 (diff)
downloadllvm-abaf2d8d3bea4e68df9e07f98a73507a56c7cdca.zip
llvm-abaf2d8d3bea4e68df9e07f98a73507a56c7cdca.tar.gz
llvm-abaf2d8d3bea4e68df9e07f98a73507a56c7cdca.tar.bz2
Update comments; BasicAA is no longer necessarily the end of the chain.
llvm-svn: 117268
Diffstat (limited to 'llvm/lib/Analysis/AliasAnalysis.cpp')
-rw-r--r--llvm/lib/Analysis/AliasAnalysis.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Analysis/AliasAnalysis.cpp b/llvm/lib/Analysis/AliasAnalysis.cpp
index 8fbd8ea..912923b 100644
--- a/llvm/lib/Analysis/AliasAnalysis.cpp
+++ b/llvm/lib/Analysis/AliasAnalysis.cpp
@@ -94,7 +94,7 @@ AliasAnalysis::getModRefInfo(ImmutableCallSite CS,
if ((Mask & Mod) && pointsToConstantMemory(Loc))
Mask = ModRefResult(Mask & ~Mod);
- // If this is BasicAA, don't forward.
+ // If this is the end of the chain, don't forward.
if (!AA) return Mask;
// Otherwise, fall back to the next AA in the chain. But we can merge
@@ -152,7 +152,7 @@ AliasAnalysis::getModRefInfo(ImmutableCallSite CS1, ImmutableCallSite CS2) {
return R;
}
- // If this is BasicAA, don't forward.
+ // If this is the end of the chain, don't forward.
if (!AA) return Mask;
// Otherwise, fall back to the next AA in the chain. But we can merge
@@ -171,7 +171,7 @@ AliasAnalysis::getModRefBehavior(ImmutableCallSite CS) {
if (const Function *F = CS.getCalledFunction())
Min = getModRefBehavior(F);
- // If this is BasicAA, don't forward.
+ // If this is the end of the chain, don't forward.
if (!AA) return Min;
// Otherwise, fall back to the next AA in the chain. But we can merge