[PATCH] Fix vectorizable_store memory leaks (PR middle-end/56461)

Jeff Law law@redhat.com
Fri Mar 1 22:41:00 GMT 2013


On 03/01/2013 01:23 PM, Jakub Jelinek wrote:
> Hi!
>
> The first two hunks are similar issue to what I've posted for
> vect_permute_load_chain two days ago, the remaining issue is that
> if ncopies > 1, we'd leak the result_chain vector too.
>
> Fixed thusly, bootstrapped/regtested on x86_64-linux and i686-linux, ok for
> trunk?
>
> 2013-03-01  Jakub Jelinek  <jakub@redhat.com>
>
> 	PR middle-end/56461
> 	* tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
> 	method on dr_chain and result_chain.
> 	* tree-vect-stmts.c (vectorizable_store): Only call
> 	result_chain.create if j == 0.
This is fine.  Please install.  Thanks.

Jeff



More information about the Gcc-patches mailing list