[PATCH] D142232: Increase inline threshold multiplier to 11 in nvptx backend.

Luke Drummond via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 8 04:43:33 PST 2023


This revision was automatically updated to reflect the committed changes.
Closed by commit rG22d98280dd8e: [NVPTX] Increase inline threshold multiplier to 11 in nvptx backend. (authored by JackAKirk, committed by ldrumm).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D142232/new/

https://reviews.llvm.org/D142232

Files:
  llvm/lib/Target/NVPTX/NVPTXTargetTransformInfo.h


Index: llvm/lib/Target/NVPTX/NVPTXTargetTransformInfo.h
===================================================================
--- llvm/lib/Target/NVPTX/NVPTXTargetTransformInfo.h
+++ llvm/lib/Target/NVPTX/NVPTXTargetTransformInfo.h
@@ -90,9 +90,9 @@
     return true;
   }
 
-  // Increase the inlining cost threshold by a factor of 5, reflecting that
+  // Increase the inlining cost threshold by a factor of 11, reflecting that
   // calls are particularly expensive in NVPTX.
-  unsigned getInliningThresholdMultiplier() { return 5; }
+  unsigned getInliningThresholdMultiplier() { return 11; }
 
   InstructionCost getArithmeticInstrCost(
       unsigned Opcode, Type *Ty, TTI::TargetCostKind CostKind,


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D142232.495804.patch
Type: text/x-patch
Size: 705 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230208/7087dafc/attachment.bin>


More information about the llvm-commits mailing list