mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-10 20:33:15 +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(),
|
AA.alias(AliasAnalysis::Location(P->getValue(), P->getSize(),
|
||||||
P->getTBAAInfo()),
|
P->getTBAAInfo()),
|
||||||
AliasAnalysis::Location(Entry.getValue(), Size, TBAAInfo));
|
AliasAnalysis::Location(Entry.getValue(), Size, TBAAInfo));
|
||||||
if (Result == AliasAnalysis::MayAlias)
|
if (Result != AliasAnalysis::MustAlias)
|
||||||
AliasTy = MayAlias;
|
AliasTy = MayAlias;
|
||||||
else // First entry of must alias must have maximum size!
|
else // First entry of must alias must have maximum size!
|
||||||
P->updateSizeAndTBAAInfo(Size, TBAAInfo);
|
P->updateSizeAndTBAAInfo(Size, TBAAInfo);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user