Re: [PATCH] [x86] Check avx upper register for parallel.

2024-08-29 Thread Uros Bizjak
On Fri, Aug 30, 2024 at 6:49 AM liuhongt wrote: > > > Can the above loop be a part of ix86_check_avx_upper_register, so this > > function would scan the full RTX for avx upper register? > Changed, also adjust ix86_check_avx_upper_stores and ix86_avx_u128_mode_needed > to either inline the old ix86

[PATCH] [x86] Check avx upper register for parallel.

2024-08-29 Thread liuhongt
> Can the above loop be a part of ix86_check_avx_upper_register, so this > function would scan the full RTX for avx upper register? Changed, also adjust ix86_check_avx_upper_stores and ix86_avx_u128_mode_needed to either inline the old ix86_check_avx_upper_register or replace FOR_EACH_SUBRTX with

Re: [PATCH] [x86] Check avx upper register for parallel.

2024-08-29 Thread Uros Bizjak
On Thu, Aug 29, 2024 at 9:33 AM liuhongt wrote: > > For function arguments/return, when it's BLK mode, it's put in a > parallel with an expr_list, and the expr_list contains the real mode > and registers. > Current ix86_check_avx_upper_register only checked for SSE_REG_P, and > failed to handle th

[PATCH] [x86] Check avx upper register for parallel.

2024-08-29 Thread liuhongt
For function arguments/return, when it's BLK mode, it's put in a parallel with an expr_list, and the expr_list contains the real mode and registers. Current ix86_check_avx_upper_register only checked for SSE_REG_P, and failed to handle that. The patch extend the handle to each subrtx. Bootstrapped