@@ -1195,8 +1195,8 @@ class BasicTTIImplBase : public TargetTransformInfoImplCRTPBase<T> {
1195
1195
}
1196
1196
1197
1197
// / Get intrinsic cost based on arguments.
1198
- unsigned getIntrinsicInstrCost (const IntrinsicCostAttributes &ICA,
1199
- TTI::TargetCostKind CostKind) {
1198
+ InstructionCost getIntrinsicInstrCost (const IntrinsicCostAttributes &ICA,
1199
+ TTI::TargetCostKind CostKind) {
1200
1200
// Check for generically free intrinsics.
1201
1201
if (BaseT::getIntrinsicInstrCost (ICA, CostKind) == 0 )
1202
1202
return 0 ;
@@ -1207,7 +1207,7 @@ class BasicTTIImplBase : public TargetTransformInfoImplCRTPBase<T> {
1207
1207
return TargetTransformInfo::TCC_Basic;
1208
1208
1209
1209
if (ICA.isTypeBasedOnly ())
1210
- return * getTypeBasedIntrinsicInstrCost (ICA, CostKind). getValue ( );
1210
+ return getTypeBasedIntrinsicInstrCost (ICA, CostKind);
1211
1211
1212
1212
Type *RetTy = ICA.getReturnType ();
1213
1213
@@ -1294,13 +1294,13 @@ class BasicTTIImplBase : public TargetTransformInfoImplCRTPBase<T> {
1294
1294
case Intrinsic::vector_reduce_umax:
1295
1295
case Intrinsic::vector_reduce_umin: {
1296
1296
IntrinsicCostAttributes Attrs (IID, RetTy, Args[0 ]->getType (), FMF, I, 1 );
1297
- return * getTypeBasedIntrinsicInstrCost (Attrs, CostKind). getValue ( );
1297
+ return getTypeBasedIntrinsicInstrCost (Attrs, CostKind);
1298
1298
}
1299
1299
case Intrinsic::vector_reduce_fadd:
1300
1300
case Intrinsic::vector_reduce_fmul: {
1301
1301
IntrinsicCostAttributes Attrs (
1302
1302
IID, RetTy, {Args[0 ]->getType (), Args[1 ]->getType ()}, FMF, I, 1 );
1303
- return * getTypeBasedIntrinsicInstrCost (Attrs, CostKind). getValue ( );
1303
+ return getTypeBasedIntrinsicInstrCost (Attrs, CostKind);
1304
1304
}
1305
1305
case Intrinsic::fshl:
1306
1306
case Intrinsic::fshr: {
@@ -1365,7 +1365,7 @@ class BasicTTIImplBase : public TargetTransformInfoImplCRTPBase<T> {
1365
1365
1366
1366
IntrinsicCostAttributes Attrs (IID, RetTy, ICA.getArgTypes (), FMF, I,
1367
1367
ScalarizationCost);
1368
- return * thisT ()->getTypeBasedIntrinsicInstrCost (Attrs, CostKind). getValue ( );
1368
+ return thisT ()->getTypeBasedIntrinsicInstrCost (Attrs, CostKind);
1369
1369
}
1370
1370
1371
1371
// / Get intrinsic cost based on argument types.
0 commit comments