@@ -971,8 +971,7 @@ InstructionCost VPWidenCallRecipe::computeCost(ElementCount VF,
971971 Arguments.push_back (V);
972972 }
973973
974- Type *RetTy =
975- ToVectorTy (Ctx.Types .inferScalarType (this ->getVPSingleValue ()), VF);
974+ Type *RetTy = ToVectorTy (Ctx.Types .inferScalarType (this ), VF);
976975 SmallVector<Type *> ParamTys;
977976 for (unsigned I = 0 ; I != getNumOperands (); ++I)
978977 ParamTys.push_back (
@@ -1279,8 +1278,7 @@ InstructionCost VPWidenRecipe::computeCost(ElementCount VF,
12791278 TTI::TargetCostKind CostKind = TTI::TCK_RecipThroughput;
12801279 switch (Opcode) {
12811280 case Instruction::FNeg: {
1282- Type *VectorTy =
1283- ToVectorTy (Ctx.Types .inferScalarType (this ->getVPSingleValue ()), VF);
1281+ Type *VectorTy = ToVectorTy (Ctx.Types .inferScalarType (this ), VF);
12841282 return Ctx.TTI .getArithmeticInstrCost (
12851283 Opcode, VectorTy, CostKind,
12861284 {TargetTransformInfo::OK_AnyValue, TargetTransformInfo::OP_None},
@@ -1318,8 +1316,7 @@ InstructionCost VPWidenRecipe::computeCost(ElementCount VF,
13181316 if (RHSInfo.Kind == TargetTransformInfo::OK_AnyValue &&
13191317 getOperand (1 )->isDefinedOutsideLoopRegions ())
13201318 RHSInfo.Kind = TargetTransformInfo::OK_UniformValue;
1321- Type *VectorTy =
1322- ToVectorTy (Ctx.Types .inferScalarType (this ->getVPSingleValue ()), VF);
1319+ Type *VectorTy = ToVectorTy (Ctx.Types .inferScalarType (this ), VF);
13231320 Instruction *CtxI = dyn_cast_or_null<Instruction>(getUnderlyingValue ());
13241321
13251322 SmallVector<const Value *, 4 > Operands;
@@ -1332,8 +1329,7 @@ InstructionCost VPWidenRecipe::computeCost(ElementCount VF,
13321329 }
13331330 case Instruction::Freeze: {
13341331 // This opcode is unknown. Assume that it is the same as 'mul'.
1335- Type *VectorTy =
1336- ToVectorTy (Ctx.Types .inferScalarType (this ->getVPSingleValue ()), VF);
1332+ Type *VectorTy = ToVectorTy (Ctx.Types .inferScalarType (this ), VF);
13371333 return Ctx.TTI .getArithmeticInstrCost (Instruction::Mul, VectorTy, CostKind);
13381334 }
13391335 case Instruction::ICmp:
@@ -2994,7 +2990,7 @@ void VPExpandSCEVRecipe::execute(VPTransformState &State) {
29942990void VPExpandSCEVRecipe::print (raw_ostream &O, const Twine &Indent,
29952991 VPSlotTracker &SlotTracker) const {
29962992 O << Indent << " EMIT " ;
2997- getVPSingleValue ()-> printAsOperand (O, SlotTracker);
2993+ printAsOperand (O, SlotTracker);
29982994 O << " = EXPAND SCEV " << *Expr;
29992995}
30002996#endif
0 commit comments