[llvm] [FuncSpec] Only compute Latency bonus when necessary (PR #113159)

Hari Limaye via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 21 08:26:03 PDT 2024


================
@@ -97,21 +98,29 @@ class FunctionSpecializationTest : public testing::Test {
                                GetAC);
   }
 
-  Bonus getInstCost(Instruction &I, bool SizeOnly = false) {
+  Cost getInstCodeSize(Instruction &I, bool SizeOnly = false) {
----------------
hazzlim wrote:

Ah yes agreed, that makes more sense - Done.

https://github.com/llvm/llvm-project/pull/113159


More information about the llvm-commits mailing list