<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 7, 2017 at 2:00 PM, David Li via Phabricator <span dir="ltr"><<a href="mailto:reviews@reviews.llvm.org" target="_blank">reviews@reviews.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">davidxl added a comment.<br>
<br>
The profile annotation part of another patch should be merged in here.<br>
<span class=""><br>
<br>
<br>
================<br>
Comment at: include/llvm/Transforms/<wbr>InstrProfiling.h:63<br>
+  // The start value of precise value profile range for memory intrinsic sizes.<br>
+  const int64_t DefaultMemOPSizeRangeStart = 0;<br>
+  int64_t MemOPSizeRangeStart;<br>
----------------<br>
</span><span class="">xur wrote:<br>
> davidxl wrote:<br>
> > should it be 1?<br>
> there are calls to memory intrinsics with size 0.  There are quite many actually.<br>
</span>The value transformation patch does not seem to handle it .  Do you see cases where value 0 is a frequent value in hot stringop sites?<br></blockquote><div><br></div><div>I think the transformation patch handles size 0. It just transforms the dominant size values (it does not check the values).</div><div>value 0 is one of the top size values. The absolute value is not large. But it's frequent in various call sites.</div><div>   </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<br>
================<br>
Comment at: lib/Transforms/<wbr>Instrumentation/<wbr>InstrProfiling.cpp:83<br>
+    cl::desc("Set the range of size in memory intrinsic calls to be profiled "<br>
+             "precisely, in a format of <start_val>:<end_val>"),<br>
+    cl::init(""));<br>
----------------<br>
document the case when some value is missing in the option.<br>
<br>
<br>
<a href="https://reviews.llvm.org/D28965" rel="noreferrer" target="_blank">https://reviews.llvm.org/<wbr>D28965</a><br>
<br>
<br>
<br>
</blockquote></div><br></div></div>