summaryrefslogtreecommitdiff
path: root/lib/Analysis/MemoryDependenceAnalysis.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-11-11 00:20:27 +0000
committerDan Gohman <gohman@apple.com>2010-11-11 00:20:27 +0000
commitec9b4ac914e91791c580148cf8068c82d4b2cb91 (patch)
treeaff1764c3cd2eafe635932965925883592794972 /lib/Analysis/MemoryDependenceAnalysis.cpp
parent1e8e72d72a71ec3fb6c81bd35a34261f34436900 (diff)
downloadllvm-ec9b4ac914e91791c580148cf8068c82d4b2cb91.tar.gz
llvm-ec9b4ac914e91791c580148cf8068c82d4b2cb91.tar.bz2
llvm-ec9b4ac914e91791c580148cf8068c82d4b2cb91.tar.xz
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
Diffstat (limited to 'lib/Analysis/MemoryDependenceAnalysis.cpp')
-rw-r--r--lib/Analysis/MemoryDependenceAnalysis.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/Analysis/MemoryDependenceAnalysis.cpp b/lib/Analysis/MemoryDependenceAnalysis.cpp
index ea682ec029..f29ff4a731 100644
--- a/lib/Analysis/MemoryDependenceAnalysis.cpp
+++ b/lib/Analysis/MemoryDependenceAnalysis.cpp
@@ -860,7 +860,7 @@ getNonLocalPointerDepFromBB(const PHITransAddr &Pointer,
CacheInfo->Pair = BBSkipFirstBlockPair(StartBB, SkipFirstBlock);
else {
CacheInfo->Pair = BBSkipFirstBlockPair();
- CacheInfo->Size = 0;
+ CacheInfo->Size = AliasAnalysis::UnknownSize;
CacheInfo->TBAATag = 0;
}
@@ -986,7 +986,7 @@ getNonLocalPointerDepFromBB(const PHITransAddr &Pointer,
// cached value to do more work but not miss the phi trans failure.
NonLocalPointerInfo &NLPI = NonLocalPointerDeps[CacheKey];
NLPI.Pair = BBSkipFirstBlockPair();
- NLPI.Size = 0;
+ NLPI.Size = AliasAnalysis::UnknownSize;
NLPI.TBAATag = 0;
continue;
}
@@ -1015,7 +1015,7 @@ getNonLocalPointerDepFromBB(const PHITransAddr &Pointer,
// specific block queries) but we can't do the fastpath "return all
// results from the set" Clear out the indicator for this.
CacheInfo->Pair = BBSkipFirstBlockPair();
- CacheInfo->Size = 0;
+ CacheInfo->Size = AliasAnalysis::UnknownSize;
CacheInfo->TBAATag = 0;
SkipFirstBlock = false;
continue;
@@ -1034,7 +1034,7 @@ getNonLocalPointerDepFromBB(const PHITransAddr &Pointer,
// specific block queries) but we can't do the fastpath "return all
// results from the set". Clear out the indicator for this.
CacheInfo->Pair = BBSkipFirstBlockPair();
- CacheInfo->Size = 0;
+ CacheInfo->Size = AliasAnalysis::UnknownSize;
CacheInfo->TBAATag = 0;
// 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.
NonLocalPointerDeps[P].Pair = BBSkipFirstBlockPair();
- NonLocalPointerDeps[P].Size = 0;
+ NonLocalPointerDeps[P].Size = AliasAnalysis::UnknownSize;
NonLocalPointerDeps[P].TBAATag = 0;
// Update any entries for RemInst to use the instruction after it.