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

Jatin Bhateja jbhateja at openjdk.org
Thu Jun 30 08:52:43 UTC 2022


On Thu, 30 Jun 2022 07:35:08 GMT, Xiaohong Gong <xgong at openjdk.org> wrote:

> > 
> 
> Thanks so much for the advice @jatin-bhateja ! I basically agree with this idea! It seems the similar optimization can also be applied to other binary arithmetic vector operations like `add, sub, mul, div, shift` ? So do you think it's better we create another patch special to handle the constant folding for such vector nodes? We'd better find a better way to handle this while not add the same transformation for each node. WDYT?

Agree, addressing it in subsequent PR along with other operations should be ok.  Thanks.  

LGTM.

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

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


More information about the hotspot-compiler-dev mailing list