Re: [PATCH] x86: Don't issue vzeroupper if callee returns AVX register

2021-07-18 Thread Uros Bizjak via Gcc-patches
On Sun, Jul 18, 2021 at 6:47 PM H.J. Lu wrote: > > Don't issue vzeroupper before function call if callee returns AVX > register since callee must be compiled with AVX. > > gcc/ > > PR target/101495 > * config/i386/i386.c (ix86_check_avx_upper_stores): Moved before > ix86_av

[PATCH] x86: Don't issue vzeroupper if callee returns AVX register

2021-07-18 Thread H.J. Lu via Gcc-patches
Don't issue vzeroupper before function call if callee returns AVX register since callee must be compiled with AVX. gcc/ PR target/101495 * config/i386/i386.c (ix86_check_avx_upper_stores): Moved before ix86_avx_u128_mode_needed. (ix86_avx_u128_mode_needed): Return