From 32493b35ba87d124c8c75f74754d712ba36ea331 Mon Sep 17 00:00:00 2001 From: Andreas Bolka Date: Mon, 29 Jun 2009 00:50:26 +0000 Subject: [PATCH] Fix case in LDA util function names. llvm-svn: 74415 --- lib/Analysis/LoopDependenceAnalysis.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/Analysis/LoopDependenceAnalysis.cpp b/lib/Analysis/LoopDependenceAnalysis.cpp index 4912bf27591..ec1d2f1f2ec 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(I) || isa(I); } -static void getMemRefInstrs( +static void GetMemRefInstrs( const Loop *L, SmallVectorImpl &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(x) || isa(y)); }