diff options
author | Chris Lattner <sabre@nondot.org> | 2009-11-27 06:31:14 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-11-27 06:31:14 +0000 |
commit | 62deff066c5ee4474be80ed2d95aca010e237343 (patch) | |
tree | 68b55ad5e3f3fdfcc8db6e377958569b3f184a48 /include/llvm/Analysis/MemoryDependenceAnalysis.h | |
parent | b99be5beac847a92a56af21131da56a94b194bf2 (diff) | |
download | external_llvm-62deff066c5ee4474be80ed2d95aca010e237343.zip external_llvm-62deff066c5ee4474be80ed2d95aca010e237343.tar.gz external_llvm-62deff066c5ee4474be80ed2d95aca010e237343.tar.bz2 |
Fix phi translation in load PRE to agree with the phi
translation done by memdep, and reenable gep translation
again.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89992 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis/MemoryDependenceAnalysis.h')
-rw-r--r-- | include/llvm/Analysis/MemoryDependenceAnalysis.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/llvm/Analysis/MemoryDependenceAnalysis.h b/include/llvm/Analysis/MemoryDependenceAnalysis.h index 205c34a..cbb27a5 100644 --- a/include/llvm/Analysis/MemoryDependenceAnalysis.h +++ b/include/llvm/Analysis/MemoryDependenceAnalysis.h @@ -244,6 +244,13 @@ namespace llvm { BasicBlock *BB, SmallVectorImpl<NonLocalDepEntry> &Result); + /// PHITranslatePointer - Find an available version of the specified value + /// PHI translated across the specified edge. If MemDep isn't able to + /// satisfy this request, it returns null. + Value *PHITranslatePointer(Value *V, + BasicBlock *CurBB, BasicBlock *PredBB, + const TargetData *TD) const; + /// removeInstruction - Remove an instruction from the dependence analysis, /// updating the dependence of instructions that previously depended on it. void removeInstruction(Instruction *InstToRemove); |