Fix case in LDA util function names.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74415 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Andreas Bolka 2009-06-29 00:50:26 +00:00
parent c6a303052b
commit acd6f8d5d1

View File

@ -36,17 +36,17 @@ char LoopDependenceAnalysis::ID = 0;
// Utility Functions // Utility Functions
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
static inline bool isMemRefInstr(const Value *I) { static inline bool IsMemRefInstr(const Value *I) {
return isa<LoadInst>(I) || isa<StoreInst>(I); return isa<LoadInst>(I) || isa<StoreInst>(I);
} }
static void getMemRefInstrs( static void GetMemRefInstrs(
const Loop *L, SmallVectorImpl<Instruction*> &memrefs) { const Loop *L, SmallVectorImpl<Instruction*> &memrefs) {
for (Loop::block_iterator b = L->block_begin(), be = L->block_end(); for (Loop::block_iterator b = L->block_begin(), be = L->block_end();
b != be; ++b) b != be; ++b)
for (BasicBlock::iterator i = (*b)->begin(), ie = (*b)->end(); for (BasicBlock::iterator i = (*b)->begin(), ie = (*b)->end();
i != ie; ++i) i != ie; ++i)
if (isMemRefInstr(i)) if (IsMemRefInstr(i))
memrefs.push_back(i); memrefs.push_back(i);
} }
@ -56,7 +56,7 @@ static void getMemRefInstrs(
bool LoopDependenceAnalysis::isDependencePair(const Value *x, bool LoopDependenceAnalysis::isDependencePair(const Value *x,
const Value *y) const { const Value *y) const {
return isMemRefInstr(x) && isMemRefInstr(y) return IsMemRefInstr(x) && IsMemRefInstr(y)
&& (isa<StoreInst>(x) || isa<StoreInst>(y)); && (isa<StoreInst>(x) || isa<StoreInst>(y));
} }