Re: Fix profile update in switch conversion

2017-10-10 Thread Martin Liška
On 10/10/2017 07:39 PM, Jan Hubicka wrote: >> Hi Honza, >> >> The change here cause the following failures: >> >>> FAIL: gcc.dg/tree-prof/switch-case-1.c scan-rtl-dump-times expand ";; basic >>> block[^\\n]*count 2000" 1 >>> FAIL: gcc.dg/tree-prof/switch-case-2.c scan-rtl-dump-times expand ";; bas

Re: Fix profile update in switch conversion

2017-10-10 Thread Jan Hubicka
> Hi Honza, > > The change here cause the following failures: > > >FAIL: gcc.dg/tree-prof/switch-case-1.c scan-rtl-dump-times expand ";; basic > >block[^\\n]*count 2000" 1 > >FAIL: gcc.dg/tree-prof/switch-case-2.c scan-rtl-dump-times expand ";; basic > >block[^\\n]*count 2000" 1 > > > I check

Re: Fix profile update in switch conversion

2017-10-10 Thread Renlin Li
Hi Honza, The change here cause the following failures: FAIL: gcc.dg/tree-prof/switch-case-1.c scan-rtl-dump-times expand ";; basic block[^\\n]*count 2000" 1 FAIL: gcc.dg/tree-prof/switch-case-2.c scan-rtl-dump-times expand ";; basic block[^\\n]*count 2000" 1 I checked that, after the chan

Re: Fix profile update in switch conversion

2017-10-06 Thread Martin Liška
On 10/06/2017 02:18 PM, Jan Hubicka wrote: > Hi, > this patch fixes missing profile updat that triggers during profiledbootstrap. > > Honza Thanks for the fix ;) I've just send patch for more complex switch lowering. It's maybe present also there. Will check. Martin

Fix profile update in switch conversion

2017-10-06 Thread Jan Hubicka
Hi, this patch fixes missing profile updat that triggers during profiledbootstrap. Honza * tree-switch-conversion.c (do_jump_if_equal, emit_cmp_and_jump_insns): Update edge counts. Index: tree-switch-conversion.c ===