[PATCH] D18561: [NVPTX] Set NVPTXTTI::getInliningThresholdMultiplier to 5.
Justin Lebar via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 14 18:44:25 PDT 2016
This revision was automatically updated to reflect the committed changes.
Closed by commit rL266406: [NVPTX] Set NVPTXTTI::getInliningThresholdMultiplier to 5. (authored by jlebar).
Changed prior to commit:
http://reviews.llvm.org/D18561?vs=51945&id=53830#toc
Repository:
rL LLVM
http://reviews.llvm.org/D18561
Files:
llvm/trunk/lib/Target/NVPTX/NVPTXTargetTransformInfo.h
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,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D18561.53830.patch
Type: text/x-patch
Size: 627 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160415/eb9b316c/attachment.bin>
More information about the llvm-commits
mailing list