diff options
Diffstat (limited to 'lib/Target/NVPTX/NVPTXTargetTransformInfo.h')
-rw-r--r-- | lib/Target/NVPTX/NVPTXTargetTransformInfo.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Target/NVPTX/NVPTXTargetTransformInfo.h b/lib/Target/NVPTX/NVPTXTargetTransformInfo.h index 0946a3293eec..08ffdf191151 100644 --- a/lib/Target/NVPTX/NVPTXTargetTransformInfo.h +++ b/lib/Target/NVPTX/NVPTXTargetTransformInfo.h @@ -52,6 +52,10 @@ public: 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, |