how does vrp2 rearrange this?

2021-10-19 Thread Andrew MacLeod via Gcc-patches
using testcase ifcvt-4.c: typedef int word __attribute__((mode(word))); word foo (word x, word y, word a) {   word i = x;   word j = y;   /* Try to make taking the branch likely.  */   __builtin_expect (x > y, 1);   if (x > y)     {   i = a;   j = i;     }   return i * j; The current V

Re: how does vrp2 rearrange this?

2021-10-19 Thread Andrew Pinski via Gcc-patches
On Tue, Oct 19, 2021 at 1:29 PM Andrew MacLeod via Gcc-patches wrote: > > using testcase ifcvt-4.c: > > > typedef int word __attribute__((mode(word))); > > word > foo (word x, word y, word a) > { >word i = x; >word j = y; >/* Try to make taking the branch likely. */ >__builtin_exp

Re: how does vrp2 rearrange this?

2021-10-19 Thread Andrew MacLeod via Gcc-patches
On 10/19/21 5:13 PM, Andrew Pinski wrote: On Tue, Oct 19, 2021 at 1:29 PM Andrew MacLeod via Gcc-patches wrote: using testcase ifcvt-4.c: typedef int word __attribute__((mode(word))); word foo (word x, word y, word a) { word i = x; word j = y; /* Try to make taking the branch lik

Re: how does vrp2 rearrange this?

2021-10-19 Thread Andrew Pinski via Gcc-patches
On Tue, Oct 19, 2021 at 3:32 PM Andrew MacLeod wrote: > > On 10/19/21 5:13 PM, Andrew Pinski wrote: > > On Tue, Oct 19, 2021 at 1:29 PM Andrew MacLeod via Gcc-patches > > wrote: > >> using testcase ifcvt-4.c: > >> > >> > >> typedef int word __attribute__((mode(word))); > >> > >> word > >> foo (wo

Re: how does vrp2 rearrange this?

2021-10-21 Thread Andrew MacLeod via Gcc-patches
On 10/19/21 7:13 PM, Andrew Pinski wrote: On Tue, Oct 19, 2021 at 3:32 PM Andrew MacLeod wrote: On 10/19/21 5:13 PM, Andrew Pinski wrote: On Tue, Oct 19, 2021 at 1:29 PM Andrew MacLeod via Gcc-patches wrote: using testcase ifcvt-4.c: typedef int word __attribute__((mode(word))); word foo

Re: how does vrp2 rearrange this?

2021-10-21 Thread Andrew Pinski via Gcc-patches
On Thu, Oct 21, 2021 at 8:04 AM Andrew MacLeod wrote: > > On 10/19/21 7:13 PM, Andrew Pinski wrote: > > On Tue, Oct 19, 2021 at 3:32 PM Andrew MacLeod wrote: > >> On 10/19/21 5:13 PM, Andrew Pinski wrote: > >>> On Tue, Oct 19, 2021 at 1:29 PM Andrew MacLeod via Gcc-patches > >>> wrote: > us

Re: how does vrp2 rearrange this?

2021-10-25 Thread Andrew MacLeod via Gcc-patches
On 10/21/21 3:59 PM, Andrew Pinski wrote: On Thu, Oct 21, 2021 at 8:04 AM Andrew MacLeod wrote: On 10/19/21 7:13 PM, Andrew Pinski wrote: On Tue, Oct 19, 2021 at 3:32 PM Andrew MacLeod wrote: On 10/19/21 5:13 PM, Andrew Pinski wrote: On Tue, Oct 19, 2021 at 1:29 PM Andrew MacLeod via Gcc-pa