summaryrefslogtreecommitdiff
path: root/lib/Transforms
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2008-09-10 14:49:55 +0000
committerDevang Patel <dpatel@apple.com>2008-09-10 14:49:55 +0000
commit36a5bf8fd8b32fe749c207f8809ae7d4f66eeb03 (patch)
treeded1bf0f1831ecf8de49f30d8b662802954d03f1 /lib/Transforms
parentbf53c2952de5bc494942007b378970f1584dec03 (diff)
downloadllvm-36a5bf8fd8b32fe749c207f8809ae7d4f66eeb03.tar.gz
llvm-36a5bf8fd8b32fe749c207f8809ae7d4f66eeb03.tar.bz2
llvm-36a5bf8fd8b32fe749c207f8809ae7d4f66eeb03.tar.xz
fix white spaces.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56056 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms')
-rw-r--r--lib/Transforms/Scalar/IndVarSimplify.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/Transforms/Scalar/IndVarSimplify.cpp b/lib/Transforms/Scalar/IndVarSimplify.cpp
index 76a07d4601..13be455c4d 100644
--- a/lib/Transforms/Scalar/IndVarSimplify.cpp
+++ b/lib/Transforms/Scalar/IndVarSimplify.cpp
@@ -605,7 +605,7 @@ bool IndVarSimplify::runOnLoop(Loop *L, LPPassManager &LPM) {
}
/// OptimizeCanonicalIVType - If loop induction variable is always
-/// sign or zero extended then extend the type of induction
+/// sign or zero extended then extend the type of the induction
/// variable.
void IndVarSimplify::OptimizeCanonicalIVType(Loop *L) {
PHINode *PH = L->getCanonicalInductionVariable();
@@ -622,10 +622,10 @@ void IndVarSimplify::OptimizeCanonicalIVType(Loop *L) {
// Check IV uses. If all IV uses are either SEXT or ZEXT (except
// IV increment instruction) then this IV is suitable for this
- // transformstion.
- bool isSEXT = false;
+ // transformation.
+ bool isSEXT = false;
BinaryOperator *Incr = NULL;
- const Type *NewType = NULL;
+ const Type *NewType = NULL;
for(Value::use_iterator UI = PH->use_begin(), UE = PH->use_end();
UI != UE; ++UI) {
const Type *CandidateType = NULL;
@@ -633,7 +633,7 @@ void IndVarSimplify::OptimizeCanonicalIVType(Loop *L) {
CandidateType = ZI->getDestTy();
else if (SExtInst *SI = dyn_cast<SExtInst>(UI)) {
CandidateType = SI->getDestTy();
- isSEXT = true;
+ isSEXT = true;
}
else if ((Incr = dyn_cast<BinaryOperator>(UI))) {
// Validate IV increment instruction.