RFR: 8304450: [vectorapi] Refactor VectorShuffle implementation [v5]

Paul Sandoz psandoz at openjdk.org
Fri Mar 31 16:24:25 UTC 2023


On Fri, 31 Mar 2023 12:17:49 GMT, Quan Anh Mai <qamai at openjdk.org> wrote:

>> src/jdk.incubator.vector/share/classes/jdk/incubator/vector/X-VectorBits.java.template line 1106:
>> 
>>> 1104:         @Override
>>> 1105:         @ForceInline
>>> 1106:         public int laneSource(int i) {
>> 
>> Can this method be moved to `AbstractShuffle`?
>
> No because `T lane(int)` is a method of the typed vector classes which is not available in `AbstractVector`

Ah, doh!, yes of course, we would need to specialize the shuffle.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/13093#discussion_r1154671839


More information about the hotspot-compiler-dev mailing list