@@ -1195,8 +1195,8 @@ class BasicTTIImplBase : public TargetTransformInfoImplCRTPBase<T> {
11951195 }
11961196
11971197 // / 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) {
12001200 // Check for generically free intrinsics.
12011201 if (BaseT::getIntrinsicInstrCost (ICA, CostKind) == 0 )
12021202 return 0 ;
@@ -1207,7 +1207,7 @@ class BasicTTIImplBase : public TargetTransformInfoImplCRTPBase<T> {
12071207 return TargetTransformInfo::TCC_Basic;
12081208
12091209 if (ICA.isTypeBasedOnly ())
1210- return * getTypeBasedIntrinsicInstrCost (ICA, CostKind). getValue ( );
1210+ return getTypeBasedIntrinsicInstrCost (ICA, CostKind);
12111211
12121212 Type *RetTy = ICA.getReturnType ();
12131213
@@ -1294,13 +1294,13 @@ class BasicTTIImplBase : public TargetTransformInfoImplCRTPBase<T> {
12941294 case Intrinsic::vector_reduce_umax:
12951295 case Intrinsic::vector_reduce_umin: {
12961296 IntrinsicCostAttributes Attrs (IID, RetTy, Args[0 ]->getType (), FMF, I, 1 );
1297- return * getTypeBasedIntrinsicInstrCost (Attrs, CostKind). getValue ( );
1297+ return getTypeBasedIntrinsicInstrCost (Attrs, CostKind);
12981298 }
12991299 case Intrinsic::vector_reduce_fadd:
13001300 case Intrinsic::vector_reduce_fmul: {
13011301 IntrinsicCostAttributes Attrs (
13021302 IID, RetTy, {Args[0 ]->getType (), Args[1 ]->getType ()}, FMF, I, 1 );
1303- return * getTypeBasedIntrinsicInstrCost (Attrs, CostKind). getValue ( );
1303+ return getTypeBasedIntrinsicInstrCost (Attrs, CostKind);
13041304 }
13051305 case Intrinsic::fshl:
13061306 case Intrinsic::fshr: {
@@ -1365,7 +1365,7 @@ class BasicTTIImplBase : public TargetTransformInfoImplCRTPBase<T> {
13651365
13661366 IntrinsicCostAttributes Attrs (IID, RetTy, ICA.getArgTypes (), FMF, I,
13671367 ScalarizationCost);
1368- return * thisT ()->getTypeBasedIntrinsicInstrCost (Attrs, CostKind). getValue ( );
1368+ return thisT ()->getTypeBasedIntrinsicInstrCost (Attrs, CostKind);
13691369 }
13701370
13711371 // / Get intrinsic cost based on argument types.
0 commit comments