[PATCH] D20459: [profile] Add support for static counter allocation for value profiling (part-1)

Sean Silva via llvm-commits llvm-commits at lists.llvm.org
Thu May 19 21:53:11 PDT 2016


silvas added inline comments.

================
Comment at: lib/Transforms/Instrumentation/InstrProfiling.cpp:443
@@ +442,3 @@
+  uint64_t NumCounters = TotalNS * NumCountersPerValueSite;
+  // Heuristic for small programs with very few total value sites.
+  if (NumCounters < 10)
----------------
Thanks, that makes sense. Can you mention this in the comment?


http://reviews.llvm.org/D20459





More information about the llvm-commits mailing list