<div dir="ltr">The way InstrProf handles overflow is a little extreme (by skipping the record for the whole function). I think Using saturating add with some form of warning is better.<div><br></div><div>David</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Nov 16, 2015 at 3:37 PM, Nathan Slingerland <span dir="ltr"><<a href="mailto:slingn@gmail.com" target="_blank">slingn@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">slingn added a comment.<br>
<br>
Related question:<br>
<br>
Is it by design that intstr profile count overflow is treated differently from sample profile count overflow?<br>
Instr profile merging appears to skip records that would result in overflow and print a warning. Sample profile count overflow saturates and does not show a warning.<br>
<br>
<br>
<a href="http://reviews.llvm.org/D14720" rel="noreferrer" target="_blank">http://reviews.llvm.org/D14720</a><br>
<br>
<br>
<br>
</blockquote></div><br></div>