Re: [PATCH v2] x86: Build only one __cpu_model/__cpu_features2 variables

2021-05-05 Thread Uros Bizjak via Gcc-patches
On Wed, May 5, 2021 at 4:50 PM H.J. Lu wrote: > > On Wed, May 05, 2021 at 09:36:16AM +0200, Richard Biener wrote: > > On Mon, May 3, 2021 at 11:31 AM Ivan Sorokin via Gcc-patches > > wrote: > > > > > > Prior to this commit GCC -O2 generated quite bad code for this > > > function: > > > > > > bool

[PATCH v2] x86: Build only one __cpu_model/__cpu_features2 variables

2021-05-05 Thread H.J. Lu via Gcc-patches
On Wed, May 05, 2021 at 09:36:16AM +0200, Richard Biener wrote: > On Mon, May 3, 2021 at 11:31 AM Ivan Sorokin via Gcc-patches > wrote: > > > > Prior to this commit GCC -O2 generated quite bad code for this > > function: > > > > bool f() > > { > > return __builtin_cpu_supports("popcnt") > >