mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-27 07:12:06 +00:00
Update this code to handle PartialAlias as MayAlias.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121508 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4a34cbd2b9
commit
2c2f4c8247
@ -105,7 +105,7 @@ void AliasSet::addPointer(AliasSetTracker &AST, PointerRec &Entry,
|
||||
AA.alias(AliasAnalysis::Location(P->getValue(), P->getSize(),
|
||||
P->getTBAAInfo()),
|
||||
AliasAnalysis::Location(Entry.getValue(), Size, TBAAInfo));
|
||||
if (Result == AliasAnalysis::MayAlias)
|
||||
if (Result != AliasAnalysis::MustAlias)
|
||||
AliasTy = MayAlias;
|
||||
else // First entry of must alias must have maximum size!
|
||||
P->updateSizeAndTBAAInfo(Size, TBAAInfo);
|
||||
|
Loading…
x
Reference in New Issue
Block a user