RFR: 8303762: [vectorapi] Intrinsification of Vector.slice [v6]
Quan Anh Mai
qamai at openjdk.org
Fri May 5 12:21:21 UTC 2023
On Thu, 6 Apr 2023 01:45:37 GMT, Xiaohong Gong <xgong at openjdk.org> wrote:
>> Quan Anh Mai has updated the pull request incrementally with one additional commit since the last revision:
>>
>> style
>
> test/hotspot/jtreg/compiler/vectorapi/TestVectorSlice.java line 466:
>
>> 464: @IR(counts = {IRNode.VECTOR_SLICE, "17"})
>> 465: static void testB128(byte[][] dst, byte[] src1, byte[] src2) {
>> 466: var species = ByteVector.SPECIES_128;
>
> Suggest to define the species as a "`private static final`" field of this test class. It may make the intrinsification fail if the species is not a constant to the compiler.
This local is final and is loaded from a `static final` field so it should be equivalent to referring to `ByteVector.SPECIES_128` directly
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/12909#discussion_r1186024843
More information about the core-libs-dev
mailing list