@@ -233,31 +233,6 @@ class TargetTransformInfo {
233
233
// / the EXT operation.
234
234
int getExtCost (const Instruction *I, const Value *Src) const ;
235
235
236
- // / Estimate the cost of a function call when lowered.
237
- // /
238
- // / The contract for this is the same as \c getOperationCost except that it
239
- // / supports an interface that provides extra information specific to call
240
- // / instructions.
241
- // /
242
- // / This is the most basic query for estimating call cost: it only knows the
243
- // / function type and (potentially) the number of arguments at the call site.
244
- // / The latter is only interesting for varargs function types.
245
- int getCallCost (FunctionType *FTy, int NumArgs = -1 ,
246
- const User *U = nullptr ) const ;
247
-
248
- // / Estimate the cost of calling a specific function when lowered.
249
- // /
250
- // / This overload adds the ability to reason about the particular function
251
- // / being called in the event it is a library call with special lowering.
252
- int getCallCost (const Function *F, int NumArgs = -1 ,
253
- const User *U = nullptr ) const ;
254
-
255
- // / Estimate the cost of calling a specific function when lowered.
256
- // /
257
- // / This overload allows specifying a set of candidate argument values.
258
- int getCallCost (const Function *F, ArrayRef<const Value *> Arguments,
259
- const User *U = nullptr ) const ;
260
-
261
236
// / \returns A value by which our inlining threshold should be multiplied.
262
237
// / This is primarily used to bump up the inlining threshold wholesale on
263
238
// / targets where calls are unusually expensive.
@@ -279,15 +254,11 @@ class TargetTransformInfo {
279
254
int getInlinerVectorBonusPercent () const ;
280
255
281
256
// / Estimate the cost of an intrinsic when lowered.
282
- // /
283
- // / Mirrors the \c getCallCost method but uses an intrinsic identifier.
284
257
int getIntrinsicCost (Intrinsic::ID IID, Type *RetTy,
285
258
ArrayRef<Type *> ParamTys,
286
259
const User *U = nullptr ) const ;
287
260
288
261
// / Estimate the cost of an intrinsic when lowered.
289
- // /
290
- // / Mirrors the \c getCallCost method but uses an intrinsic identifier.
291
262
int getIntrinsicCost (Intrinsic::ID IID, Type *RetTy,
292
263
ArrayRef<const Value *> Arguments,
293
264
const User *U = nullptr ) const ;
@@ -1206,10 +1177,6 @@ class TargetTransformInfo::Concept {
1206
1177
virtual int getGEPCost (Type *PointeeType, const Value *Ptr,
1207
1178
ArrayRef<const Value *> Operands) = 0;
1208
1179
virtual int getExtCost (const Instruction *I, const Value *Src) = 0;
1209
- virtual int getCallCost (FunctionType *FTy, int NumArgs, const User *U) = 0;
1210
- virtual int getCallCost (const Function *F, int NumArgs, const User *U) = 0;
1211
- virtual int getCallCost (const Function *F,
1212
- ArrayRef<const Value *> Arguments, const User *U) = 0;
1213
1180
virtual unsigned getInliningThresholdMultiplier () = 0;
1214
1181
virtual int getInlinerVectorBonusPercent () = 0;
1215
1182
virtual int getIntrinsicCost (Intrinsic::ID IID, Type *RetTy,
@@ -1455,16 +1422,6 @@ class TargetTransformInfo::Model final : public TargetTransformInfo::Concept {
1455
1422
int getExtCost (const Instruction *I, const Value *Src) override {
1456
1423
return Impl.getExtCost (I, Src);
1457
1424
}
1458
- int getCallCost (FunctionType *FTy, int NumArgs, const User *U) override {
1459
- return Impl.getCallCost (FTy, NumArgs, U);
1460
- }
1461
- int getCallCost (const Function *F, int NumArgs, const User *U) override {
1462
- return Impl.getCallCost (F, NumArgs, U);
1463
- }
1464
- int getCallCost (const Function *F,
1465
- ArrayRef<const Value *> Arguments, const User *U) override {
1466
- return Impl.getCallCost (F, Arguments, U);
1467
- }
1468
1425
unsigned getInliningThresholdMultiplier () override {
1469
1426
return Impl.getInliningThresholdMultiplier ();
1470
1427
}
0 commit comments