mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
Don't pass the raw invalid pointer used to represent conflicting
TBAA information to AliasAnalysis. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116751 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -158,7 +158,8 @@ bool AliasSet::aliasesPointer(const Value *Ptr, unsigned Size,
|
||||
// to be sure it doesn't alias the set...
|
||||
for (iterator I = begin(), E = end(); I != E; ++I)
|
||||
if (AA.alias(AliasAnalysis::Location(Ptr, Size, TBAAInfo),
|
||||
AliasAnalysis::Location(I.getPointer(), I.getSize(), I.getTBAAInfo())))
|
||||
AliasAnalysis::Location(I.getPointer(), I.getSize(),
|
||||
I.getTBAAInfo())))
|
||||
return true;
|
||||
|
||||
// Check the call sites list and invoke list...
|
||||
@@ -376,7 +377,7 @@ void AliasSetTracker::add(const AliasSetTracker &AST) {
|
||||
bool X;
|
||||
for (AliasSet::iterator ASI = AS.begin(), E = AS.end(); ASI != E; ++ASI) {
|
||||
AliasSet &NewAS = addPointer(ASI.getPointer(), ASI.getSize(),
|
||||
ASI.getTBAAInfo(),
|
||||
ASI.getRawTBAAInfo(),
|
||||
(AliasSet::AccessType)AS.AccessTy, X);
|
||||
if (AS.isVolatile()) NewAS.setVolatile();
|
||||
}
|
||||
@@ -531,7 +532,8 @@ void AliasSetTracker::copyValue(Value *From, Value *To) {
|
||||
// Add it to the alias set it aliases...
|
||||
I = PointerMap.find(From);
|
||||
AliasSet *AS = I->second->getAliasSet(*this);
|
||||
AS->addPointer(*this, Entry, I->second->getSize(), I->second->getTBAAInfo(),
|
||||
AS->addPointer(*this, Entry, I->second->getSize(),
|
||||
I->second->getRawTBAAInfo(),
|
||||
true);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user