RFR: 8325991: Accelerate Poly1305 on x86_64 using AVX2 instructions [v4]

Sandhya Viswanathan sviswanathan at openjdk.org
Fri Feb 23 00:04:55 UTC 2024


On Wed, 21 Feb 2024 05:40:13 GMT, Srinivas Vamsi Parasa <duke at openjdk.org> wrote:

>> The goal of this PR is to accelerate the Poly1305 algorithm using AVX2 instructions (including IFMA) for x86_64 CPUs.
>> 
>> This implementation is directly based on the AVX2 Poly1305 hash computation as implemented in Intel(R) Multi-Buffer Crypto for IPsec Library (url: https://github.com/intel/intel-ipsec-mb/blob/main/lib/avx2_t3/poly_fma_avx2.asm)
>
> Srinivas Vamsi Parasa has updated the pull request incrementally with one additional commit since the last revision:
> 
>   remove unused uniions and fix uses_vl

src/hotspot/cpu/x86/vm_version_x86.cpp line 1360:

> 1358: 
> 1359: #ifdef _LP64
> 1360:   if ((supports_avx512ifma() && supports_avx512vlbw() && MaxVectorSize >= 64) || (supports_avxifma() && MaxVectorSize >= 32))  {

This could be:
if ((supports_avx512ifma() && supports_avx512vlbw()) || (supports_avxifma()))  {

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

PR Review Comment: https://git.openjdk.org/jdk/pull/17881#discussion_r1500084463


More information about the hotspot-compiler-dev mailing list