[llvm-commits] CVS: llvm/lib/Analysis/InductionVariable.cpp
Chris Lattner
lattner at cs.uiuc.edu
Wed Sep 10 00:25:03 PDT 2003
Changes in directory llvm/lib/Analysis:
InductionVariable.cpp updated: 1.26 -> 1.27
---
Log message:
Spelling fixes
---
Diffs of the changes:
Index: llvm/lib/Analysis/InductionVariable.cpp
diff -u llvm/lib/Analysis/InductionVariable.cpp:1.26 llvm/lib/Analysis/InductionVariable.cpp:1.27
--- llvm/lib/Analysis/InductionVariable.cpp:1.26 Wed Sep 10 00:08:19 2003
+++ llvm/lib/Analysis/InductionVariable.cpp Wed Sep 10 00:23:58 2003
@@ -39,11 +39,11 @@
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 @@
}
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 @@
}
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 @@
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;
More information about the llvm-commits
mailing list