mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-13 14:35:54 +00:00
Don't forget the TBAA info, if available.
llvm-svn: 118842
This commit is contained in:
parent
b20b7d2ec2
commit
97ce60bfa4
@ -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