RFR: 8341137: Optimize long vector multiplication using x86 VPMUL[U]DQ instruction [v2]

Jatin Bhateja jbhateja at openjdk.org
Sun Nov 10 07:43:49 UTC 2024


On Fri, 8 Nov 2024 23:18:18 GMT, Sandhya Viswanathan <sviswanathan at openjdk.org> wrote:

>> src/hotspot/share/opto/vectornode.cpp line 2132:
>> 
>>> 2130:   // Directly forward masked inputs if
>>> 2131:   if (n->Opcode() == Op_AndV) {
>>> 2132:      return n->in(1)->Opcode() == Op_Replicate ? n->in(2) : n->in(1);
>> 
>> This particular check should ensure that Replicate constant is `0xFFFFFFFF`.
>
> Yes, this should ensure 0xFFFFFFFF.

We land here after checking if inputs are uints.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/21244#discussion_r1835611481


More information about the core-libs-dev mailing list