[llvm-commits] [llvm] r166622 - /llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp

Nadav Rotem nrotem at apple.com
Wed Oct 24 13:58:40 PDT 2012


Author: nadav
Date: Wed Oct 24 15:58:40 2012
New Revision: 166622

URL: http://llvm.org/viewvc/llvm-project?rev=166622&view=rev
Log:
whitespace

Modified:
    llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp

Modified: llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp?rev=166622&r1=166621&r2=166622&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp (original)
+++ llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp Wed Oct 24 15:58:40 2012
@@ -1468,7 +1468,7 @@
     case Instruction::Or:
     case Instruction::Xor: {
       Type *VTy = VectorType::get(I->getType(), VF);
-          return VTTI->getInstrCost(I->getOpcode(), VTy);
+      return VTTI->getInstrCost(I->getOpcode(), VTy);
     }
     case Instruction::Select: {
       SelectInst *SI = cast<SelectInst>(I);
@@ -1476,8 +1476,8 @@
       const SCEV *CondSCEV = SE->getSCEV(SI->getCondition());
       bool ScalarCond = (SE->isLoopInvariant(CondSCEV, TheLoop));
       Type *CondTy = SI->getCondition()->getType();
-        if (ScalarCond)
-          CondTy = VectorType::get(CondTy, VF);
+      if (ScalarCond)
+        CondTy = VectorType::get(CondTy, VF);
 
       return VTTI->getInstrCost(I->getOpcode(), VTy, CondTy);
     }





More information about the llvm-commits mailing list