Re: [PATCH] x86: Define __rdtsc and __rdtscp as macros

2021-03-30 Thread Uros Bizjak via Gcc-patches
On Tue, Mar 30, 2021 at 1:03 PM Jakub Jelinek wrote: > > On Tue, Mar 30, 2021 at 12:59:16PM +0200, Richard Biener wrote: > > > > > So yes, a better solution would be nice but I can't see any since the > > > > > underlying issue is known since a long time and thus the pragmatic > > > > > solution i

Re: [PATCH] x86: Define __rdtsc and __rdtscp as macros

2021-03-30 Thread Jakub Jelinek via Gcc-patches
On Tue, Mar 30, 2021 at 12:59:16PM +0200, Richard Biener wrote: > > > > So yes, a better solution would be nice but I can't see any since the > > > > underlying issue is known since a long time and thus the pragmatic > > > > solution is the best (IMHO), also from a QOI perspective. For > > > > in

Re: [PATCH] x86: Define __rdtsc and __rdtscp as macros

2021-03-30 Thread Richard Biener via Gcc-patches
On Tue, Mar 30, 2021 at 10:14 AM Uros Bizjak wrote: > > On Fri, Mar 26, 2021 at 6:24 PM H.J. Lu wrote: > > > > On Fri, Mar 26, 2021 at 5:09 AM Richard Biener > > wrote: > > > > > > On Fri, Mar 26, 2021 at 11:26 AM Jakub Jelinek wrote: > > > > > > > > On Fri, Mar 26, 2021 at 11:13:21AM +0100, Ri

Re: [PATCH] x86: Define __rdtsc and __rdtscp as macros

2021-03-30 Thread Uros Bizjak via Gcc-patches
On Fri, Mar 26, 2021 at 6:24 PM H.J. Lu wrote: > > On Fri, Mar 26, 2021 at 5:09 AM Richard Biener > wrote: > > > > On Fri, Mar 26, 2021 at 11:26 AM Jakub Jelinek wrote: > > > > > > On Fri, Mar 26, 2021 at 11:13:21AM +0100, Richard Biener wrote: > > > > On Fri, Mar 26, 2021 at 9:34 AM Jakub Jelin

[PATCH] x86: Define __rdtsc and __rdtscp as macros

2021-03-26 Thread H.J. Lu via Gcc-patches
> So yes, a better solution would be nice but I can't see any since the > underlying issue is known since a long time and thus the pragmatic > solution is the best (IMHO), also from a QOI perspective. For intrinsics > it also avoids differences with -O0 vs -O with what we accept