@@ -494,13 +494,13 @@ namespace {
494494 if (StoreInst *SI = dyn_cast<StoreInst>(I)) {
495495 // For stores, it is the value type, not the pointer type that matters
496496 // because the value is what will come from a vector register.
497-
497+
498498 Value *IVal = SI->getValueOperand ();
499499 T1 = IVal->getType ();
500500 } else {
501501 T1 = I->getType ();
502502 }
503-
503+
504504 if (CastInst *CI = dyn_cast<CastInst>(I))
505505 T2 = CI->getSrcTy ();
506506 else
@@ -547,7 +547,7 @@ namespace {
547547 // Returns the cost of the provided instruction using TTI.
548548 // This does not handle loads and stores.
549549 unsigned getInstrCost (unsigned Opcode, Type *T1, Type *T2,
550- TargetTransformInfo::OperandValueKind Op1VK =
550+ TargetTransformInfo::OperandValueKind Op1VK =
551551 TargetTransformInfo::OK_AnyValue,
552552 TargetTransformInfo::OperandValueKind Op2VK =
553553 TargetTransformInfo::OK_AnyValue) {
@@ -894,7 +894,7 @@ namespace {
894894 // vectors that has a scalar condition results in a malformed select.
895895 // FIXME: We could probably be smarter about this by rewriting the select
896896 // with different types instead.
897- return (SI->getCondition ()->getType ()->isVectorTy () ==
897+ return (SI->getCondition ()->getType ()->isVectorTy () ==
898898 SI->getTrueValue ()->getType ()->isVectorTy ());
899899 } else if (isa<CmpInst>(I)) {
900900 if (!Config.VectorizeCmp )
@@ -2514,7 +2514,7 @@ namespace {
25142514 if (I2 == I1 || isa<UndefValue>(I2))
25152515 I2 = nullptr ;
25162516 }
2517-
2517+
25182518 if (HEE) {
25192519 Value *I3 = HEE->getOperand (0 );
25202520 if (!I2 && I3 != I1)
@@ -2705,14 +2705,14 @@ namespace {
27052705 // so extend the smaller vector to be the same length as the larger one.
27062706 Instruction *NLOp;
27072707 if (numElemL > 1 ) {
2708-
2708+
27092709 std::vector<Constant *> Mask (numElemH);
27102710 unsigned v = 0 ;
27112711 for (; v < numElemL; ++v)
27122712 Mask[v] = ConstantInt::get (Type::getInt32Ty (Context), v);
27132713 for (; v < numElemH; ++v)
27142714 Mask[v] = UndefValue::get (Type::getInt32Ty (Context));
2715-
2715+
27162716 NLOp = new ShuffleVectorInst (LOp, UndefValue::get (ArgTypeL),
27172717 ConstantVector::get (Mask),
27182718 getReplacementName (IBeforeJ ? I : J,
@@ -2722,7 +2722,7 @@ namespace {
27222722 getReplacementName (IBeforeJ ? I : J,
27232723 true , o, 1 ));
27242724 }
2725-
2725+
27262726 NLOp->insertBefore (IBeforeJ ? J : I);
27272727 LOp = NLOp;
27282728 }
@@ -2732,7 +2732,7 @@ namespace {
27322732 if (numElemH == 1 && expandIEChain (Context, I, J, o, LOp, numElemL,
27332733 ArgTypeH, VArgType, IBeforeJ)) {
27342734 Instruction *S =
2735- InsertElementInst::Create (LOp, HOp,
2735+ InsertElementInst::Create (LOp, HOp,
27362736 ConstantInt::get (Type::getInt32Ty (Context),
27372737 numElemL),
27382738 getReplacementName (IBeforeJ ? I : J,
@@ -2749,7 +2749,7 @@ namespace {
27492749 Mask[v] = ConstantInt::get (Type::getInt32Ty (Context), v);
27502750 for (; v < numElemL; ++v)
27512751 Mask[v] = UndefValue::get (Type::getInt32Ty (Context));
2752-
2752+
27532753 NHOp = new ShuffleVectorInst (HOp, UndefValue::get (ArgTypeH),
27542754 ConstantVector::get (Mask),
27552755 getReplacementName (IBeforeJ ? I : J,
0 commit comments