diff options
author | Andreas Bolka <a@bolka.at> | 2009-06-29 00:50:26 +0000 |
---|---|---|
committer | Andreas Bolka <a@bolka.at> | 2009-06-29 00:50:26 +0000 |
commit | 88a17f09a4daf473a6aa285703c42d92516a5f1b (patch) | |
tree | dfa6bb836cedbdeabcfcf1b9b25757126bdea921 | |
parent | 158c59013497ac416b9f0f05ae8f80135fab452e (diff) | |
download | external_llvm-88a17f09a4daf473a6aa285703c42d92516a5f1b.zip external_llvm-88a17f09a4daf473a6aa285703c42d92516a5f1b.tar.gz external_llvm-88a17f09a4daf473a6aa285703c42d92516a5f1b.tar.bz2 |
Fix case in LDA util function names.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74415 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Analysis/LoopDependenceAnalysis.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Analysis/LoopDependenceAnalysis.cpp b/lib/Analysis/LoopDependenceAnalysis.cpp index 4912bf2..ec1d2f1 100644 --- a/lib/Analysis/LoopDependenceAnalysis.cpp +++ b/lib/Analysis/LoopDependenceAnalysis.cpp @@ -36,17 +36,17 @@ char LoopDependenceAnalysis::ID = 0; // Utility Functions //===----------------------------------------------------------------------===// -static inline bool isMemRefInstr(const Value *I) { +static inline bool IsMemRefInstr(const Value *I) { return isa<LoadInst>(I) || isa<StoreInst>(I); } -static void getMemRefInstrs( +static void GetMemRefInstrs( const Loop *L, SmallVectorImpl<Instruction*> &memrefs) { for (Loop::block_iterator b = L->block_begin(), be = L->block_end(); b != be; ++b) for (BasicBlock::iterator i = (*b)->begin(), ie = (*b)->end(); i != ie; ++i) - if (isMemRefInstr(i)) + if (IsMemRefInstr(i)) memrefs.push_back(i); } @@ -56,7 +56,7 @@ static void getMemRefInstrs( bool LoopDependenceAnalysis::isDependencePair(const Value *x, const Value *y) const { - return isMemRefInstr(x) && isMemRefInstr(y) + return IsMemRefInstr(x) && IsMemRefInstr(y) && (isa<StoreInst>(x) || isa<StoreInst>(y)); } |