FWIW, I agree with you both: this was indeed in the "trivial" bucket, and it should have a test case. =D<br><br><div class="gmail_quote">On Wed, Apr 4, 2012 at 2:24 PM, Hongbin Zheng <span dir="ltr"><<a href="mailto:etherzhhb@gmail.com">etherzhhb@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I think here it should use<br>
<br>
Threshold = std::min(OptSizeUnrollThreshold, Threshold);<br>
<br>
Otherwise users are not able unroll the loop with a threshold that is<br>
small than OptSizeUnrollThreshold for function with "OptimizeForSize"<br>
attribute option.<br>
<br>
We can also provide a command line option to allow users to assign the<br>
value of OptSizeUnrollThreshold.<br></blockquote><div><br></div><div>These both make sense to me.</div></div>