IntVector.fromValues is not optimized away ?
Paul Sandoz
paul.sandoz at oracle.com
Mon May 11 20:31:01 UTC 2020
Grouping the N int fields into an int[] array is likely the most optimal right now.
We are a bit stuck until HS is enhanced to better track and match source patterns of element values the vector is composed of. Hence my recommendation.
I doubt N vector insertion instructions will greatly improve matters on their own, perhaps in combination for fields to avoid the temporary buffer.
Paul.
> On May 11, 2020, at 12:59 PM, forax at univ-mlv.fr wrote:
>>
>> My recommendation would be to use fromValues for constant or pre-computed vector
>> values.
>
> and what i should use for fields ?
>
> Adding pattern matching rules for that in HS can not be done ?
>
> vmovq + vpxor => vpxor
> vpinsrd + vpxor => vpxor,
> etc
>
More information about the panama-dev
mailing list