diff options
author | Gabor Greif <ggreif@gmail.com> | 2010-07-27 14:38:38 +0000 |
---|---|---|
committer | Gabor Greif <ggreif@gmail.com> | 2010-07-27 14:38:38 +0000 |
commit | c0d4aed6f755a273b4e3bb61114f31b5b6c8fee8 (patch) | |
tree | 221eea8e81662221e0328cd19048dc426262b651 /lib/Analysis/MemoryDependenceAnalysis.cpp | |
parent | 0de11e0e66269aa63710416c2671c6ca33d065ff (diff) | |
download | external_llvm-c0d4aed6f755a273b4e3bb61114f31b5b6c8fee8.zip external_llvm-c0d4aed6f755a273b4e3bb61114f31b5b6c8fee8.tar.gz external_llvm-c0d4aed6f755a273b4e3bb61114f31b5b6c8fee8.tar.bz2 |
simplify
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109504 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/MemoryDependenceAnalysis.cpp')
-rw-r--r-- | lib/Analysis/MemoryDependenceAnalysis.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/Analysis/MemoryDependenceAnalysis.cpp b/lib/Analysis/MemoryDependenceAnalysis.cpp index 947a810..662752f 100644 --- a/lib/Analysis/MemoryDependenceAnalysis.cpp +++ b/lib/Analysis/MemoryDependenceAnalysis.cpp @@ -120,10 +120,9 @@ getCallSiteDependencyFrom(CallSite CS, bool isReadOnlyCall, Pointer = CI->getArgOperand(0); // calls to free() erase the entire structure PointerSize = ~0ULL; - } else if (isa<CallInst>(Inst) || isa<InvokeInst>(Inst)) { + } else if (CallSite InstCS = Inst) { // Debug intrinsics don't cause dependences. if (isa<DbgInfoIntrinsic>(Inst)) continue; - CallSite InstCS = CallSite::get(Inst); // If these two calls do not interfere, look past it. switch (AA->getModRefInfo(CS, InstCS)) { case AliasAnalysis::NoModRef: @@ -387,7 +386,7 @@ MemDepResult MemoryDependenceAnalysis::getDependency(Instruction *QueryInst) { MemSize = cast<ConstantInt>(II->getArgOperand(1))->getZExtValue(); break; default: - CallSite QueryCS = CallSite::get(QueryInst); + CallSite QueryCS(QueryInst); bool isReadOnly = AA->onlyReadsMemory(QueryCS); LocalCache = getCallSiteDependencyFrom(QueryCS, isReadOnly, ScanPos, QueryParent); |