Re: Fix profile updating after outer loop unswitching

2017-02-14 Thread Richard Biener
On Tue, Feb 14, 2017 at 12:22 PM, Martin Liška wrote: > On 02/05/2017 06:28 PM, Jan Hubicka wrote: >> + /* ... finally scale everything in the loop except for guarded basic >> blocks >> + where profile does not change. */ >> + basic_block *body = get_loop_body (loop); > > Hello. > > This h

Re: Fix profile updating after outer loop unswitching

2017-02-14 Thread Martin Liška
On 02/05/2017 06:28 PM, Jan Hubicka wrote: > + /* ... finally scale everything in the loop except for guarded basic blocks > + where profile does not change. */ > + basic_block *body = get_loop_body (loop); Hello. This hunk causes a new memory leak: ==24882== 64 bytes in 1 blocks are defi

Fix profile updating after outer loop unswitching

2017-02-05 Thread Jan Hubicka
Hi, this patches updates profile after hoist_guard transformation that was added in 2015. I wonder why this transofrm is bundled in tree-ssa-loop-unswitch and not enabled at -O2/-Os. It converts while (1) {