<p dir="ltr">See the patch I posted on the other thread for this issue -- that should avoid the UB and the division in all cases.</p>
<div class="gmail_quote">On Nov 19, 2015 5:55 PM, "David Li via llvm-commits" <<a href="mailto:llvm-commits@lists.llvm.org">llvm-commits@lists.llvm.org</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">davidxl accepted this revision.<br>
davidxl added a comment.<br>
This revision is now accepted and ready to land.<br>
<br>
If you have time, finding a way to speed up the method will be welcome (such as the fast path suggestion).<br>
<br>
<br>
<a href="http://reviews.llvm.org/D14845" rel="noreferrer" target="_blank">http://reviews.llvm.org/D14845</a><br>
<br>
<br>
<br>
_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@lists.llvm.org">llvm-commits@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits</a><br>
</blockquote></div>