[PATCH] D35964: Change INSTR_PROF_DEFAULT_NUM_VAL_PER_SITE from 8 to 16.

Dehao Chen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 27 16:27:48 PDT 2017


danielcdh created this revision.
Herald added a subscriber: sanjoy.

In the current implementation, the defaul number of values per site tracked by value profiler is 8, which is too small and could introduce inaccuracies to profile. Changing it to 16 will be able to gain more accurate value profiler.


https://reviews.llvm.org/D35964

Files:
  lib/profile/InstrProfilingValue.c


Index: lib/profile/InstrProfilingValue.c
===================================================================
--- lib/profile/InstrProfilingValue.c
+++ lib/profile/InstrProfilingValue.c
@@ -22,7 +22,7 @@
 static int OutOfNodesWarnings = 0;
 static int hasNonDefaultValsPerSite = 0;
 #define INSTR_PROF_MAX_VP_WARNS 10
-#define INSTR_PROF_DEFAULT_NUM_VAL_PER_SITE 8
+#define INSTR_PROF_DEFAULT_NUM_VAL_PER_SITE 16
 #define INSTR_PROF_VNODE_POOL_SIZE 1024
 
 #ifndef _MSC_VER


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D35964.108548.patch
Type: text/x-patch
Size: 473 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170727/f00f5b99/attachment.bin>


More information about the llvm-commits mailing list