Array addition and array sum Panama benchmarks

Antoine Chambille ach at activeviam.com
Thu Mar 21 16:27:24 UTC 2024


Hi Roland,

Like you I think that loops with a 'long' counter are not used often. It's
not a use case for me.
It may become more common when iterating over segments where offsets are
long. Or when we get long arrays ;)

Best,
-Antoine

On Thu, Mar 21, 2024 at 12:01 PM Roland Westrelin <rwestrel at redhat.com>
wrote:

>
> > Loops over arrays seem automatically optimized, but not when the loop
> has a
> > 'long' stride.
>
> Elimination of range checks where the loop variable is a long but the
> range check is performed on the loop variable casted to int is not
> supported so that's not suprising. Would people really use this code
> pattern though?
>
> Roland.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/panama-dev/attachments/20240321/c6dcc3fe/attachment-0001.htm>


More information about the panama-dev mailing list