[llvm-commits] [llvm] r56056 - /llvm/trunk/lib/Transforms/Scalar/IndVarSimplify.cpp

Devang Patel dpatel at apple.com
Wed Sep 10 07:49:59 PDT 2008


Author: dpatel
Date: Wed Sep 10 09:49:55 2008
New Revision: 56056

URL: http://llvm.org/viewvc/llvm-project?rev=56056&view=rev
Log:
fix white spaces.

Modified:
    llvm/trunk/lib/Transforms/Scalar/IndVarSimplify.cpp

Modified: llvm/trunk/lib/Transforms/Scalar/IndVarSimplify.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/IndVarSimplify.cpp?rev=56056&r1=56055&r2=56056&view=diff

==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/IndVarSimplify.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/IndVarSimplify.cpp Wed Sep 10 09:49:55 2008
@@ -605,7 +605,7 @@
 }
 
 /// 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 @@
   
   // 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 @@
       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.





More information about the llvm-commits mailing list