diff options
author | Chris Lattner <sabre@nondot.org> | 2009-11-27 08:25:10 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-11-27 08:25:10 +0000 |
commit | 616613d7a4ddc7cefce53b2bfe3fdcdec6b032c2 (patch) | |
tree | a21c2231efa530622c802a2907533ef4beb023c4 /include/llvm/Analysis/MemoryDependenceAnalysis.h | |
parent | d280d85791c1fad9e625a5e2f472092b0c81c14e (diff) |
teach GVN's load PRE to insert computations of the address in predecessors
where it is not available. It's unclear how to get this inserted
computation into GVN's scalar availability sets, Owen, help? :)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89997 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 cbb27a5218..042c7fc73f 100644 --- a/include/llvm/Analysis/MemoryDependenceAnalysis.h +++ b/include/llvm/Analysis/MemoryDependenceAnalysis.h @@ -250,6 +250,13 @@ namespace llvm { Value *PHITranslatePointer(Value *V, BasicBlock *CurBB, BasicBlock *PredBB, const TargetData *TD) const; + + /// InsertPHITranslatedPointer - Insert a computation of the PHI translated + /// version of 'V' for the edge PredBB->CurBB into the end of the PredBB + /// block. + Value *InsertPHITranslatedPointer(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. |