Index: llvm/trunk/lib/Target/NVPTX/NVPTXTargetTransformInfo.h =================================================================== --- llvm/trunk/lib/Target/NVPTX/NVPTXTargetTransformInfo.h +++ llvm/trunk/lib/Target/NVPTX/NVPTXTargetTransformInfo.h @@ -52,6 +52,10 @@ bool isSourceOfDivergence(const Value *V); + // Increase the inlining cost threshold by a factor of 5, reflecting that + // calls are particularly expensive in NVPTX. + unsigned getInliningThresholdMultiplier() { return 5; } + int getArithmeticInstrCost( unsigned Opcode, Type *Ty, TTI::OperandValueKind Opd1Info = TTI::OK_AnyValue,