Re: [AARCH64] Optimize cmp in some cases

2013-01-04 Thread Andrew Pinski
On Fri, Jan 4, 2013 at 1:34 AM, Richard Earnshaw wrote: > On 03/01/13 22:39, Andrew Pinski wrote: >> >> Hi, >>For aarch64, we don't CSE some cmp away. This patch fixes the case >> where we are CSE across some basic-blocks like: >> int f(int a, int b) >> { >>if(a> return 1; >>if(a

Re: [AARCH64] Optimize cmp in some cases

2013-01-04 Thread Richard Earnshaw
On 03/01/13 22:39, Andrew Pinski wrote: Hi, For aarch64, we don't CSE some cmp away. This patch fixes the case where we are CSE across some basic-blocks like: int f(int a, int b) { if(ab) return -1; return 0; } --- CUT --- To fix this, I implemented the target hook TARGET_FIXED_CON