summaryrefslogtreecommitdiff
path: root/lib/Analysis/AliasAnalysis.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-07-07 14:27:09 +0000
committerDan Gohman <gohman@apple.com>2010-07-07 14:27:09 +0000
commit9e86f4364b912ae743490ba01d6989acfd12c046 (patch)
tree0eb6677f25fb104f50e85918f79d60b5665e0315 /lib/Analysis/AliasAnalysis.cpp
parent46151f1764ec61bfe3724e5db41e7675a9d90a96 (diff)
downloadllvm-9e86f4364b912ae743490ba01d6989acfd12c046.tar.gz
llvm-9e86f4364b912ae743490ba01d6989acfd12c046.tar.bz2
llvm-9e86f4364b912ae743490ba01d6989acfd12c046.tar.xz
Remove interprocedural-basic-aa and associated code. The AliasAnalysis
interface needs implementations to be consistent, so any code which wants to support different semantics must use a different interface. It's not currently worthwhile to add a new interface for this new concept. Document that AliasAnalysis doesn't support cross-function queries. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107776 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/AliasAnalysis.cpp')
-rw-r--r--lib/Analysis/AliasAnalysis.cpp16
1 files changed, 7 insertions, 9 deletions
diff --git a/lib/Analysis/AliasAnalysis.cpp b/lib/Analysis/AliasAnalysis.cpp
index d9fe2f7407..503fbbdab8 100644
--- a/lib/Analysis/AliasAnalysis.cpp
+++ b/lib/Analysis/AliasAnalysis.cpp
@@ -229,20 +229,18 @@ bool llvm::isNoAliasCall(const Value *V) {
/// identifiable object. This returns true for:
/// Global Variables and Functions (but not Global Aliases)
/// Allocas and Mallocs
-/// ByVal and NoAlias Arguments, if Interprocedural is false
-/// NoAlias returns, if Interprocedural is false
+/// ByVal and NoAlias Arguments
+/// NoAlias returns
///
-bool llvm::isIdentifiedObject(const Value *V, bool Interprocedural) {
+bool llvm::isIdentifiedObject(const Value *V) {
if (isa<AllocaInst>(V))
return true;
if (isa<GlobalValue>(V) && !isa<GlobalAlias>(V))
return true;
- if (!Interprocedural) {
- if (isNoAliasCall(V))
- return true;
- if (const Argument *A = dyn_cast<Argument>(V))
- return A->hasNoAliasAttr() || A->hasByValAttr();
- }
+ if (isNoAliasCall(V))
+ return true;
+ if (const Argument *A = dyn_cast<Argument>(V))
+ return A->hasNoAliasAttr() || A->hasByValAttr();
return false;
}