@@ -971,8 +971,7 @@ InstructionCost VPWidenCallRecipe::computeCost(ElementCount VF,
971
971
Arguments.push_back (V);
972
972
}
973
973
974
- Type *RetTy =
975
- ToVectorTy (Ctx.Types .inferScalarType (this ->getVPSingleValue ()), VF);
974
+ Type *RetTy = ToVectorTy (Ctx.Types .inferScalarType (this ), VF);
976
975
SmallVector<Type *> ParamTys;
977
976
for (unsigned I = 0 ; I != getNumOperands (); ++I)
978
977
ParamTys.push_back (
@@ -1279,8 +1278,7 @@ InstructionCost VPWidenRecipe::computeCost(ElementCount VF,
1279
1278
TTI::TargetCostKind CostKind = TTI::TCK_RecipThroughput;
1280
1279
switch (Opcode) {
1281
1280
case Instruction::FNeg: {
1282
- Type *VectorTy =
1283
- ToVectorTy (Ctx.Types .inferScalarType (this ->getVPSingleValue ()), VF);
1281
+ Type *VectorTy = ToVectorTy (Ctx.Types .inferScalarType (this ), VF);
1284
1282
return Ctx.TTI .getArithmeticInstrCost (
1285
1283
Opcode, VectorTy, CostKind,
1286
1284
{TargetTransformInfo::OK_AnyValue, TargetTransformInfo::OP_None},
@@ -1318,8 +1316,7 @@ InstructionCost VPWidenRecipe::computeCost(ElementCount VF,
1318
1316
if (RHSInfo.Kind == TargetTransformInfo::OK_AnyValue &&
1319
1317
getOperand (1 )->isDefinedOutsideLoopRegions ())
1320
1318
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);
1323
1320
Instruction *CtxI = dyn_cast_or_null<Instruction>(getUnderlyingValue ());
1324
1321
1325
1322
SmallVector<const Value *, 4 > Operands;
@@ -1332,8 +1329,7 @@ InstructionCost VPWidenRecipe::computeCost(ElementCount VF,
1332
1329
}
1333
1330
case Instruction::Freeze: {
1334
1331
// 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);
1337
1333
return Ctx.TTI .getArithmeticInstrCost (Instruction::Mul, VectorTy, CostKind);
1338
1334
}
1339
1335
case Instruction::ICmp:
@@ -2994,7 +2990,7 @@ void VPExpandSCEVRecipe::execute(VPTransformState &State) {
2994
2990
void VPExpandSCEVRecipe::print (raw_ostream &O, const Twine &Indent,
2995
2991
VPSlotTracker &SlotTracker) const {
2996
2992
O << Indent << " EMIT " ;
2997
- getVPSingleValue ()-> printAsOperand (O, SlotTracker);
2993
+ printAsOperand (O, SlotTracker);
2998
2994
O << " = EXPAND SCEV " << *Expr;
2999
2995
}
3000
2996
#endif
0 commit comments