summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-12-07 00:35:51 +0000
committerChris Lattner <sabre@nondot.org>2008-12-07 00:35:51 +0000
commit056c090c679b6362e02d4ee7aac4ce2bb0b8bd42 (patch)
tree52eb1a3c2cfc44323ae37a06254cdc24c68adf5b /llvm/lib/Analysis
parentd4d9588abc113799b9e64df5b82e3d00bea25dfb (diff)
downloadbcm5719-llvm-056c090c679b6362e02d4ee7aac4ce2bb0b8bd42.tar.gz
bcm5719-llvm-056c090c679b6362e02d4ee7aac4ce2bb0b8bd42.zip
Rename getCallSiteDependency -> getCallSiteDependencyFrom to
emphasize the scanning and make it more similar to getDependencyFrom llvm-svn: 60642
Diffstat (limited to 'llvm/lib/Analysis')
-rw-r--r--llvm/lib/Analysis/MemoryDependenceAnalysis.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/llvm/lib/Analysis/MemoryDependenceAnalysis.cpp b/llvm/lib/Analysis/MemoryDependenceAnalysis.cpp
index cf748dfd89c..7c00a6c2f69 100644
--- a/llvm/lib/Analysis/MemoryDependenceAnalysis.cpp
+++ b/llvm/lib/Analysis/MemoryDependenceAnalysis.cpp
@@ -52,10 +52,11 @@ bool MemoryDependenceAnalysis::runOnFunction(Function &) {
}
-/// getCallSiteDependency - Private helper for finding the local dependencies
-/// of a call site.
+/// getCallSiteDependencyFrom - Private helper for finding the local
+/// dependencies of a call site.
MemDepResult MemoryDependenceAnalysis::
-getCallSiteDependency(CallSite CS, BasicBlock::iterator ScanIt, BasicBlock *BB) {
+getCallSiteDependencyFrom(CallSite CS, BasicBlock::iterator ScanIt,
+ BasicBlock *BB) {
// Walk backwards through the block, looking for dependencies
while (ScanIt != BB->begin()) {
Instruction *Inst = --ScanIt;
@@ -138,7 +139,7 @@ getDependencyFrom(Instruction *QueryInst, BasicBlock::iterator ScanIt,
// FreeInsts erase the entire structure, not just a field.
MemSize = ~0UL;
} else if (isa<CallInst>(QueryInst) || isa<InvokeInst>(QueryInst)) {
- return getCallSiteDependency(CallSite::get(QueryInst), ScanIt, BB);
+ return getCallSiteDependencyFrom(CallSite::get(QueryInst), ScanIt, BB);
} else {
// Otherwise, this is a vaarg or non-memory instruction, just return a
// clobber dependency on the previous inst.
OpenPOWER on IntegriCloud