diff options
author | Dan Gohman <gohman@apple.com> | 2010-11-11 21:27:26 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-11-11 21:27:26 +0000 |
commit | 888cbda188523b5316525bf7daa96517f5e5dbdf (patch) | |
tree | 9df913fd99acbbe36daabc14ac082ac9a2c5ccb6 /lib/Analysis/AliasSetTracker.cpp | |
parent | 4d70a2949007edeaad4662d5cdcb2d272cb2b2ff (diff) | |
download | external_llvm-888cbda188523b5316525bf7daa96517f5e5dbdf.zip external_llvm-888cbda188523b5316525bf7daa96517f5e5dbdf.tar.gz external_llvm-888cbda188523b5316525bf7daa96517f5e5dbdf.tar.bz2 |
Don't forget the TBAA info, if available.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118842 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/AliasSetTracker.cpp')
-rw-r--r-- | lib/Analysis/AliasSetTracker.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/Analysis/AliasSetTracker.cpp b/lib/Analysis/AliasSetTracker.cpp index e74fbec..5fabe75 100644 --- a/lib/Analysis/AliasSetTracker.cpp +++ b/lib/Analysis/AliasSetTracker.cpp @@ -46,7 +46,12 @@ void AliasSet::mergeSetIn(AliasSet &AS, AliasSetTracker &AST) { PointerRec *R = AS.getSomePointer(); // If the pointers are not a must-alias pair, this set becomes a may alias. - if (AA.alias(L->getValue(), L->getSize(), R->getValue(), R->getSize()) + if (AA.alias(AliasAnalysis::Location(L->getValue(), + L->getSize(), + L->getTBAAInfo()), + AliasAnalysis::Location(R->getValue(), + R->getSize(), + R->getTBAAInfo())) != AliasAnalysis::MustAlias) AliasTy = MayAlias; } |