diff options
| author | Dan Gohman <gohman@apple.com> | 2010-11-11 00:20:27 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2010-11-11 00:20:27 +0000 |
| commit | 8bf3d832e5044bace8722894f691ff6badc95d61 (patch) | |
| tree | ab5347a73e1e26fe33dd34533c64810917980a7d /llvm/lib/Analysis | |
| parent | c400670bf1f7fce0ef09aa649c6d7863cf39fea6 (diff) | |
| download | bcm5719-llvm-8bf3d832e5044bace8722894f691ff6badc95d61.tar.gz bcm5719-llvm-8bf3d832e5044bace8722894f691ff6badc95d61.zip | |
Set NonLocalDepInfo's Size field to UnknownSize when invalidating
it, so that it doesn't appear to be a known size.
llvm-svn: 118748
Diffstat (limited to 'llvm/lib/Analysis')
| -rw-r--r-- | llvm/lib/Analysis/MemoryDependenceAnalysis.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/llvm/lib/Analysis/MemoryDependenceAnalysis.cpp b/llvm/lib/Analysis/MemoryDependenceAnalysis.cpp index ea682ec029a..f29ff4a7314 100644 --- a/llvm/lib/Analysis/MemoryDependenceAnalysis.cpp +++ b/llvm/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. |

