Re: [PATCH] i386: Use add for a = a + b and a = b + a when possible

2019-12-16 Thread Uros Bizjak
> ince except for Bonnell, > > 01 fbadd%edi,%ebx > > is faster and shorter than > > 8d 1c 1f lea(%rdi,%rbx,1),%ebx > > we should use add for a = a + b and a = b + a when possible if not > optimizing for Bonnell. > > Tested on x86-64. > > gcc/ > > PR

[PATCH] i386: Use add for a = a + b and a = b + a when possible

2019-12-06 Thread H.J. Lu
Since except for Bonnell, 01 fbadd%edi,%ebx is faster and shorter than 8d 1c 1f lea(%rdi,%rbx,1),%ebx we should use add for a = a + b and a = b + a when possible if not optimizing for Bonnell. Tested on x86-64. gcc/ PR target/92807 * config/i386/i386.c