Re: [PATCH] Fix memory leak in parloops (PR tree-optimization/79338)

2017-02-03 Thread Jeff Law
On 02/03/2017 03:27 PM, Jakub Jelinek wrote: Hi! On the gcc.dg/autopar/outer-4.c testcase we leak memory, because vect_analyze_loop_form allocates vinfos for all the stmts in the loop and when it calls vect_analyze_loop_form on the loop->inner before the former is destroyed, we overwrite all tho

[PATCH] Fix memory leak in parloops (PR tree-optimization/79338)

2017-02-03 Thread Jakub Jelinek
Hi! On the gcc.dg/autopar/outer-4.c testcase we leak memory, because vect_analyze_loop_form allocates vinfos for all the stmts in the loop and when it calls vect_analyze_loop_form on the loop->inner before the former is destroyed, we overwrite all those vinfo pointers for stmts inside of the inner