[llvm-commits] [llvm] r118748 - in /llvm/trunk: include/llvm/Analysis/MemoryDependenceAnalysis.h lib/Analysis/MemoryDependenceAnalysis.cpp
Dan Gohman
gohman at apple.com
Wed Nov 10 16:20:27 PST 2010
Author: djg
Date: Wed Nov 10 18:20:27 2010
New Revision: 118748
URL: http://llvm.org/viewvc/llvm-project?rev=118748&view=rev
Log:
Set NonLocalDepInfo's Size field to UnknownSize when invalidating
it, so that it doesn't appear to be a known size.
Modified:
llvm/trunk/include/llvm/Analysis/MemoryDependenceAnalysis.h
llvm/trunk/lib/Analysis/MemoryDependenceAnalysis.cpp
Modified: llvm/trunk/include/llvm/Analysis/MemoryDependenceAnalysis.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Analysis/MemoryDependenceAnalysis.h?rev=118748&r1=118747&r2=118748&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Analysis/MemoryDependenceAnalysis.h (original)
+++ llvm/trunk/include/llvm/Analysis/MemoryDependenceAnalysis.h Wed Nov 10 18:20:27 2010
@@ -234,7 +234,7 @@
/// pointer. May be null if there are no tags or conflicting tags.
const MDNode *TBAATag;
- NonLocalPointerInfo() : Size(0), TBAATag(0) {}
+ NonLocalPointerInfo() : Size(AliasAnalysis::UnknownSize), TBAATag(0) {}
};
/// CachedNonLocalPointerInfo - This map stores the cached results of doing
Modified: llvm/trunk/lib/Analysis/MemoryDependenceAnalysis.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/MemoryDependenceAnalysis.cpp?rev=118748&r1=118747&r2=118748&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/MemoryDependenceAnalysis.cpp (original)
+++ llvm/trunk/lib/Analysis/MemoryDependenceAnalysis.cpp Wed Nov 10 18:20:27 2010
@@ -860,7 +860,7 @@
CacheInfo->Pair = BBSkipFirstBlockPair(StartBB, SkipFirstBlock);
else {
CacheInfo->Pair = BBSkipFirstBlockPair();
- CacheInfo->Size = 0;
+ CacheInfo->Size = AliasAnalysis::UnknownSize;
CacheInfo->TBAATag = 0;
}
@@ -986,7 +986,7 @@
// 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 @@
// 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 @@
// 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 @@
// 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.
More information about the llvm-commits
mailing list