mirror of
https://github.com/RPCS3/llvm.git
synced 2026-07-19 23:23:38 -04:00
[PM/AA] Remove the UnknownSize static member from AliasAnalysis.
This is now living in MemoryLocation, which is what it pertains to. It is also an enum there rather than a static data member which is left never defined. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239886 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -162,9 +162,11 @@ ScalarEvolutionAliasAnalysis::alias(const MemoryLocation &LocA,
|
||||
Value *AO = GetBaseValue(AS);
|
||||
Value *BO = GetBaseValue(BS);
|
||||
if ((AO && AO != LocA.Ptr) || (BO && BO != LocB.Ptr))
|
||||
if (alias(MemoryLocation(AO ? AO : LocA.Ptr, AO ? +UnknownSize : LocA.Size,
|
||||
if (alias(MemoryLocation(AO ? AO : LocA.Ptr,
|
||||
AO ? +MemoryLocation::UnknownSize : LocA.Size,
|
||||
AO ? AAMDNodes() : LocA.AATags),
|
||||
MemoryLocation(BO ? BO : LocB.Ptr, BO ? +UnknownSize : LocB.Size,
|
||||
MemoryLocation(BO ? BO : LocB.Ptr,
|
||||
BO ? +MemoryLocation::UnknownSize : LocB.Size,
|
||||
BO ? AAMDNodes() : LocB.AATags)) == NoAlias)
|
||||
return NoAlias;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user