mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-04 18:46:23 +00:00
Set NonLocalDepInfo's Size field to UnknownSize when invalidating
it, so that it doesn't appear to be a known size. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118748 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1e8e72d72a
commit
ec9b4ac914
@ -234,7 +234,7 @@ namespace llvm {
|
|||||||
/// pointer. May be null if there are no tags or conflicting tags.
|
/// pointer. May be null if there are no tags or conflicting tags.
|
||||||
const MDNode *TBAATag;
|
const MDNode *TBAATag;
|
||||||
|
|
||||||
NonLocalPointerInfo() : Size(0), TBAATag(0) {}
|
NonLocalPointerInfo() : Size(AliasAnalysis::UnknownSize), TBAATag(0) {}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// CachedNonLocalPointerInfo - This map stores the cached results of doing
|
/// CachedNonLocalPointerInfo - This map stores the cached results of doing
|
||||||
|
@ -860,7 +860,7 @@ getNonLocalPointerDepFromBB(const PHITransAddr &Pointer,
|
|||||||
CacheInfo->Pair = BBSkipFirstBlockPair(StartBB, SkipFirstBlock);
|
CacheInfo->Pair = BBSkipFirstBlockPair(StartBB, SkipFirstBlock);
|
||||||
else {
|
else {
|
||||||
CacheInfo->Pair = BBSkipFirstBlockPair();
|
CacheInfo->Pair = BBSkipFirstBlockPair();
|
||||||
CacheInfo->Size = 0;
|
CacheInfo->Size = AliasAnalysis::UnknownSize;
|
||||||
CacheInfo->TBAATag = 0;
|
CacheInfo->TBAATag = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -986,7 +986,7 @@ getNonLocalPointerDepFromBB(const PHITransAddr &Pointer,
|
|||||||
// cached value to do more work but not miss the phi trans failure.
|
// cached value to do more work but not miss the phi trans failure.
|
||||||
NonLocalPointerInfo &NLPI = NonLocalPointerDeps[CacheKey];
|
NonLocalPointerInfo &NLPI = NonLocalPointerDeps[CacheKey];
|
||||||
NLPI.Pair = BBSkipFirstBlockPair();
|
NLPI.Pair = BBSkipFirstBlockPair();
|
||||||
NLPI.Size = 0;
|
NLPI.Size = AliasAnalysis::UnknownSize;
|
||||||
NLPI.TBAATag = 0;
|
NLPI.TBAATag = 0;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@ -1015,7 +1015,7 @@ getNonLocalPointerDepFromBB(const PHITransAddr &Pointer,
|
|||||||
// specific block queries) but we can't do the fastpath "return all
|
// specific block queries) but we can't do the fastpath "return all
|
||||||
// results from the set" Clear out the indicator for this.
|
// results from the set" Clear out the indicator for this.
|
||||||
CacheInfo->Pair = BBSkipFirstBlockPair();
|
CacheInfo->Pair = BBSkipFirstBlockPair();
|
||||||
CacheInfo->Size = 0;
|
CacheInfo->Size = AliasAnalysis::UnknownSize;
|
||||||
CacheInfo->TBAATag = 0;
|
CacheInfo->TBAATag = 0;
|
||||||
SkipFirstBlock = false;
|
SkipFirstBlock = false;
|
||||||
continue;
|
continue;
|
||||||
@ -1034,7 +1034,7 @@ getNonLocalPointerDepFromBB(const PHITransAddr &Pointer,
|
|||||||
// specific block queries) but we can't do the fastpath "return all
|
// specific block queries) but we can't do the fastpath "return all
|
||||||
// results from the set". Clear out the indicator for this.
|
// results from the set". Clear out the indicator for this.
|
||||||
CacheInfo->Pair = BBSkipFirstBlockPair();
|
CacheInfo->Pair = BBSkipFirstBlockPair();
|
||||||
CacheInfo->Size = 0;
|
CacheInfo->Size = AliasAnalysis::UnknownSize;
|
||||||
CacheInfo->TBAATag = 0;
|
CacheInfo->TBAATag = 0;
|
||||||
|
|
||||||
// If *nothing* works, mark the pointer as being clobbered by the first
|
// If *nothing* works, mark the pointer as being clobbered by the first
|
||||||
@ -1252,7 +1252,7 @@ void MemoryDependenceAnalysis::removeInstruction(Instruction *RemInst) {
|
|||||||
|
|
||||||
// The cache is not valid for any specific block anymore.
|
// The cache is not valid for any specific block anymore.
|
||||||
NonLocalPointerDeps[P].Pair = BBSkipFirstBlockPair();
|
NonLocalPointerDeps[P].Pair = BBSkipFirstBlockPair();
|
||||||
NonLocalPointerDeps[P].Size = 0;
|
NonLocalPointerDeps[P].Size = AliasAnalysis::UnknownSize;
|
||||||
NonLocalPointerDeps[P].TBAATag = 0;
|
NonLocalPointerDeps[P].TBAATag = 0;
|
||||||
|
|
||||||
// Update any entries for RemInst to use the instruction after it.
|
// Update any entries for RemInst to use the instruction after it.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user