diff options
author | Chris Lattner <sabre@nondot.org> | 2003-09-10 05:24:09 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-09-10 05:24:09 +0000 |
commit | 69ecd0d7e75e839c7f1e816d30f855d5fd6fbdea (patch) | |
tree | 2c9d59b5acb1dfea71de952f92c97e8b1cbd1acc /lib/Analysis/InductionVariable.cpp | |
parent | c01ccfd503057b60053c5e8bf4175062de7c3740 (diff) |
Spelling fixes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8429 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/InductionVariable.cpp')
-rw-r--r-- | lib/Analysis/InductionVariable.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/Analysis/InductionVariable.cpp b/lib/Analysis/InductionVariable.cpp index 9a93adf2e7..ec54732467 100644 --- a/lib/Analysis/InductionVariable.cpp +++ b/lib/Analysis/InductionVariable.cpp @@ -39,11 +39,11 @@ static bool isLoopInvariant(const Value *V, const Loop *L) { enum InductionVariable::iType InductionVariable::Classify(const Value *Start, const Value *Step, const Loop *L) { - // Check for cannonical and simple linear expressions now... + // Check for canonical and simple linear expressions now... if (const ConstantInt *CStart = dyn_cast<ConstantInt>(Start)) if (const ConstantInt *CStep = dyn_cast<ConstantInt>(Step)) { if (CStart->isNullValue() && CStep->equalsInt(1)) - return Cannonical; + return Canonical; else return SimpleLinear; } @@ -212,7 +212,7 @@ Value* InductionVariable::getExecutionCount(LoopInfo *LoopInfo) { } SetCondInst *SCI = dyn_cast<SetCondInst>(B->getCondition()); - if (SCI && InductionType == Cannonical) { + if (SCI && InductionType == Canonical) { DEBUG(std::cerr << "sci:" << *SCI); Value *condVal0 = SCI->getOperand(0); Value *condVal1 = SCI->getOperand(1); @@ -269,7 +269,7 @@ Value* InductionVariable::getExecutionCount(LoopInfo *LoopInfo) { } return End; } else { - DEBUG(std::cerr << "SCI null or non-cannonical ind var\n"); + DEBUG(std::cerr << "SCI null or non-canonical ind var\n"); } return NULL; } @@ -277,7 +277,7 @@ Value* InductionVariable::getExecutionCount(LoopInfo *LoopInfo) { void InductionVariable::print(std::ostream &o) const { switch (InductionType) { - case InductionVariable::Cannonical: o << "Cannonical "; break; + case InductionVariable::Canonical: o << "Canonical "; break; case InductionVariable::SimpleLinear: o << "SimpleLinear "; break; case InductionVariable::Linear: o << "Linear "; break; case InductionVariable::Unknown: o << "Unrecognized "; break; |