RFR: 8287289: Gather/Scatter with Index Vector [v3]

Xiaohong Gong xgong at openjdk.org
Tue Apr 11 07:26:59 UTC 2023


On Tue, 11 Apr 2023 04:20:58 GMT, Quan Anh Mai <qamai at openjdk.org> wrote:

>> src/hotspot/share/opto/vectorIntrinsics.cpp line 1417:
>> 
>>> 1415:   const TypeInstPtr* idx_vector_klass = gvn().type(argument(4))->isa_instptr();
>>> 1416:   const TypeInstPtr* idx_elem_klass   = gvn().type(argument(5))->isa_instptr();
>>> 1417:   const TypeLong*    scale_type       = gvn().type(argument(10))->isa_long();
>> 
>> Can we caculate the scale value from the `elem_bt` instead of adding such a constant argument?
>
> This is a provision for support of memory segment access where offsets are not scaled.

Got it. Thanks!

-------------

PR Review Comment: https://git.openjdk.org/panama-vector/pull/213#discussion_r1162402013


More information about the panama-dev mailing list