On Tue, 8 Jul 2025, Icen Zeyada wrote:

> 
> New in V5:
> Added a check to confirm that the target is supported.

OK.

Thanks,
Richard.

> -----------------------------------------------------------------------
> 
> This patch generalizes existing scalar bitwise comparison simplifications
> to vector types by matching patterns of the form
> 
> ```
> (cmp x y) bit_and (cmp x y)
> (cmp x y) bit_ior (cmp x y)
> (cmp x y) bit_xor (cmp x y)
> ```
> 
> 
> Icen Zeyada (2):
>   tree-simplify: unify simple_comparison ops in vec_cond for bit
>     and/or/xor [PR119196]
>   gimple-fold: extend vector simplification to match scalar bitwise
>     optimizations [PR119196]
> 
>  gcc/match.pd                                  | 66 +++++++++++++++---
>  .../gcc.target/aarch64/vector-compare-5.c     | 67 +++++++++++++++++++
>  2 files changed, 122 insertions(+), 11 deletions(-)
>  create mode 100644 gcc/testsuite/gcc.target/aarch64/vector-compare-5.c
> 
> 

-- 
Richard Biener <rguent...@suse.de>
SUSE Software Solutions Germany GmbH,
Frankenstrasse 146, 90461 Nuernberg, Germany;
GF: Ivo Totev, Andrew McDonald, Werner Knoblich; (HRB 36809, AG Nuernberg)

Reply via email to