<div dir="ltr">Hi Roland,<div><br></div><div>Like you I think that loops with a 'long' counter are not used often. It's not a use case for me.</div><div>It may become more common when iterating over segments where offsets are long. Or when we get long arrays ;)</div><div><br></div><div>Best,</div><div>-Antoine</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Mar 21, 2024 at 12:01 PM Roland Westrelin <<a href="mailto:rwestrel@redhat.com">rwestrel@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
> Loops over arrays seem automatically optimized, but not when the loop has a<br>
> 'long' stride.<br>
<br>
Elimination of range checks where the loop variable is a long but the<br>
range check is performed on the loop variable casted to int is not<br>
supported so that's not suprising. Would people really use this code<br>
pattern though?<br>
<br>
Roland.<br>
<br>
</blockquote></div>