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 | 468638826e6f01c44b2126905c2871459e013ec6 (patch) | |
| tree | 9ac1e59dec1cd5848885da304c614e1d30f07ae8 /llvm/lib | |
| parent | a826a887550a4fc706516a9d8861acd5a5efd693 (diff) | |
| download | bcm5719-llvm-468638826e6f01c44b2126905c2871459e013ec6.tar.gz bcm5719-llvm-468638826e6f01c44b2126905c2871459e013ec6.zip | |
Don't forget the TBAA info, if available.
llvm-svn: 118842
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Analysis/AliasSetTracker.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/AliasSetTracker.cpp b/llvm/lib/Analysis/AliasSetTracker.cpp index e74fbec5e1f..5fabe75c6b2 100644 --- a/llvm/lib/Analysis/AliasSetTracker.cpp +++ b/llvm/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; } |

