diff options
Diffstat (limited to 'llvm/lib/Analysis/ScalarEvolutionAliasAnalysis.cpp')
| -rw-r--r-- | llvm/lib/Analysis/ScalarEvolutionAliasAnalysis.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/llvm/lib/Analysis/ScalarEvolutionAliasAnalysis.cpp b/llvm/lib/Analysis/ScalarEvolutionAliasAnalysis.cpp index 08f7a91ff9b2..af8232b03f1e 100644 --- a/llvm/lib/Analysis/ScalarEvolutionAliasAnalysis.cpp +++ b/llvm/lib/Analysis/ScalarEvolutionAliasAnalysis.cpp @@ -30,7 +30,7 @@ static bool canComputePointerDiff(ScalarEvolution &SE, SE.getEffectiveSCEVType(B->getType())) return false; - return SE.instructionCouldExistWitthOperands(A, B); + return SE.instructionCouldExistWithOperands(A, B); } AliasResult SCEVAAResult::alias(const MemoryLocation &LocA, @@ -55,10 +55,10 @@ AliasResult SCEVAAResult::alias(const MemoryLocation &LocA, if (canComputePointerDiff(SE, AS, BS)) { unsigned BitWidth = SE.getTypeSizeInBits(AS->getType()); APInt ASizeInt(BitWidth, LocA.Size.hasValue() - ? LocA.Size.getValue() + ? static_cast<uint64_t>(LocA.Size.getValue()) : MemoryLocation::UnknownSize); APInt BSizeInt(BitWidth, LocB.Size.hasValue() - ? LocB.Size.getValue() + ? static_cast<uint64_t>(LocB.Size.getValue()) : MemoryLocation::UnknownSize); // Compute the difference between the two pointers. @@ -105,8 +105,7 @@ AliasResult SCEVAAResult::alias(const MemoryLocation &LocA, AAQI, nullptr) == AliasResult::NoAlias) return AliasResult::NoAlias; - // Forward the query to the next analysis. - return AAResultBase::alias(LocA, LocB, AAQI, nullptr); + return AliasResult::MayAlias; } /// Given an expression, try to find a base value. |
