mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
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
This commit is contained in:
parent
4d70a29490
commit
888cbda188
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user