Integrated: 8288294: [vector] Add Identity/Ideal transformations for vector logic operations

Xiaohong Gong xgong at openjdk.org
Fri Jul 1 01:23:40 UTC 2022


On Mon, 20 Jun 2022 07:50:09 GMT, Xiaohong Gong <xgong at openjdk.org> wrote:

> This patch adds the following transformations for vector logic operations such as "`AndV, OrV, XorV`", incuding:
> 
>   (AndV v (Replicate m1))   => v
>   (AndV v (Replicate zero)) => Replicate zero
>   (AndV v v)                => v
> 
>   (OrV v (Replicate m1))    => Replicate m1
>   (OrV v (Replicate zero))  => v
>   (OrV v v)                 => v
> 
>   (XorV v v)                => Replicate zero
> 
> where "`m1`" is the integer constant -1, together with the same optimizations for vector mask operations like "`AndVMask, OrVMask, XorVMask`".

This pull request has now been integrated.

Changeset: 124c63c1
Author:    Xiaohong Gong <xgong at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/124c63c17c897404e3c5c3615d6727303e4f3d06
Stats:     639 lines in 4 files changed: 629 ins; 0 del; 10 mod

8288294: [vector] Add Identity/Ideal transformations for vector logic operations

Reviewed-by: kvn, jbhateja

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

PR: https://git.openjdk.org/jdk/pull/9211


More information about the hotspot-compiler-dev mailing list