RFR: 8310691: [REDO] [vectorapi] Refactor VectorShuffle implementation [v2]

Paul Sandoz psandoz at openjdk.org
Fri Dec 6 16:18:47 UTC 2024


On Fri, 6 Dec 2024 09:14:07 GMT, Quan Anh Mai <qamai at openjdk.org> wrote:

>> I incorrectly read `!=` as `==` :-) as that is the more common pattern used in the code base, so i was thinking the power of two code path was using `shuffleFromOp`. Could you invert the check to be more consistent?
>
> This piece of code follows the pattern:
> 
>     if (uncommonCondition) {
>         return uncommonPath();
>     }
>     // Continue the common path
> 
> So I think it is better to keep it as it is.

Ok, but since it deviates from the pattern applied in other areas for POT checks and caught me out would you mind adding a comment?

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

PR Review Comment: https://git.openjdk.org/jdk/pull/21042#discussion_r1873634643


More information about the hotspot-compiler-dev mailing list