mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-26 12:20:42 +00:00
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
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user