Re: __attribute__((early_branch))

2019-05-03 Thread Richard Biener
On Thu, May 2, 2019 at 6:16 PM Segher Boessenkool wrote: > > On Thu, May 02, 2019 at 02:17:51PM +0200, Richard Biener wrote: > > On Tue, Apr 30, 2019 at 9:53 PM Jeff Law wrote: > > > This is loop unswitching. It's a standard GCC optimization. If it's > > > not working as well as it should, we'r

Re: __attribute__((early_branch))

2019-05-02 Thread Segher Boessenkool
On Thu, May 02, 2019 at 02:17:51PM +0200, Richard Biener wrote: > On Tue, Apr 30, 2019 at 9:53 PM Jeff Law wrote: > > This is loop unswitching. It's a standard GCC optimization. If it's > > not working as well as it should, we're far better off determining why > > and fixing the automatic transf

Re: __attribute__((early_branch))

2019-05-02 Thread Richard Biener
On Tue, Apr 30, 2019 at 9:53 PM Jeff Law wrote: > > On 4/30/19 12:34 PM, cmdLP #CODE wrote: > > Hello GCC-team, > > > > I use GCC for all my C and C++ programs. I know how to use GCC, but I am > > not a contributor to GCC (yet). I often discover some problems C and C++ > > code have in general. Th

Re: __attribute__((early_branch))

2019-04-30 Thread Jeff Law
On 4/30/19 12:34 PM, cmdLP #CODE wrote: > Hello GCC-team, > > I use GCC for all my C and C++ programs. I know how to use GCC, but I am > not a contributor to GCC (yet). I often discover some problems C and C++ > code have in general. There is often the choice between fast or readable > code. Some