diff options
| author | Chris Lattner <sabre@nondot.org> | 2009-11-27 08:40:14 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2009-11-27 08:40:14 +0000 |
| commit | 9dbc06e034aaee26c33551a84ca04d9e114124de (patch) | |
| tree | 68f0f26757350900f725c153bbf7fe5dddfd3ec1 /lib/Analysis/MemoryDependenceAnalysis.cpp | |
| parent | a722fabf41a89cb27561345640d46479af4d5baa (diff) | |
| download | external_llvm-9dbc06e034aaee26c33551a84ca04d9e114124de.zip external_llvm-9dbc06e034aaee26c33551a84ca04d9e114124de.tar.gz external_llvm-9dbc06e034aaee26c33551a84ca04d9e114124de.tar.bz2 | |
add comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90002 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/MemoryDependenceAnalysis.cpp')
| -rw-r--r-- | lib/Analysis/MemoryDependenceAnalysis.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/Analysis/MemoryDependenceAnalysis.cpp b/lib/Analysis/MemoryDependenceAnalysis.cpp index 0aacd16..f958e75 100644 --- a/lib/Analysis/MemoryDependenceAnalysis.cpp +++ b/lib/Analysis/MemoryDependenceAnalysis.cpp @@ -1004,8 +1004,12 @@ getNonLocalPointerDepFromBB(Value *Pointer, uint64_t PointeeSize, Value *PredPtr = PHITranslatePointer(PtrInst, BB, Pred, TD); // If PHI translation fails, bail out. - if (PredPtr == 0) + if (PredPtr == 0) { + // FIXME: Instead of modelling this as a phi trans failure, we should + // model this as a clobber in the one predecessor. This will allow + // us to PRE values that are only available in some preds but not all. goto PredTranslationFailure; + } // Check to see if we have already visited this pred block with another // pointer. If so, we can't do this lookup. This failure can occur |
