<div dir="ltr">Hm, right, thanks Eli!<div><br><div>This ought to have the same threshold checks as the rest of loop unrolling - since we're only unrolling one iteration here, I guess it should just be "LoopSize <= UP.Threshold".<div><div><br></div><div>Michael</div></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Mar 3, 2017 at 11:48 AM, Eli Friedman 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">efriedma added inline comments.<br>
<br>
<br>
================<br>
Comment at: llvm/trunk/lib/Transforms/<wbr>Utils/LoopUnrollPeel.cpp:95<br>
<span class="">+      UP.PeelCount = 1;<br>
+      return;<br>
+    }<br>
</span>----------------<br>
Do we need to do some sort of threshold check here?  At first glance, it looks like this will peel a loop of any size.<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
Repository:<br>
  rL LLVM<br>
<br>
<a href="https://reviews.llvm.org/D30161" rel="noreferrer" target="_blank">https://reviews.llvm.org/<wbr>D30161</a><br>
<br>
<br>
<br>
</div></div></blockquote></div><br></div>