RFR: 8370863: VectorAPI: Optimize the VectorMaskCast chain in specific patterns [v10]

Emanuel Peter epeter at openjdk.org
Wed Feb 18 16:25:14 UTC 2026


On Wed, 18 Feb 2026 16:16:08 GMT, Emanuel Peter <epeter at openjdk.org> wrote:

>> Eric Fang has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Refine the JTReg tests
>
> test/hotspot/jtreg/compiler/vectorapi/VectorMaskCastIdentityTest.java line 127:
> 
>> 125:         VectorMask<Integer> mInt128 = mFloat128.cast(IntVector.SPECIES_128);
>> 126:         return mInt128.not().trueCount();
>> 127:     }
> 
> We should probably be able to eventually optimize this, so that we only need a cast from short to int. But that could be a different RFE.

But it would be good if you left a comment here, that this would eventually be possible.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/28313#discussion_r2823204791


More information about the core-libs-dev mailing list