On Tue, May 28, 2013 at 02:07:25PM +0200, Richard Biener wrote:
> The following fixes vectorization of loops with CLOBBER statements
> in the way of ignoring them during analysis and removing them during
> vectorization (because we ignored them for store/load placement
> and do not handle them in case we need to unroll the loop body).
> 
> Bootstrap / regtest pending on x86_64-unknown-linux-gnu.
> 
> Do you see a better way of handling the CLOBBERs that is worthwhile?

I think this is fine.  Do you plan to backport it to 4.8.2 eventually?

> 2013-05-28  Richard Biener  <rguent...@suse.de>
> 
>       PR tree-optimization/56787
>       * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
>       from the list of data references.
>       * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
>       clobbers.
>       (vect_analyze_loop_operations): Likewise.
>       (vect_transform_loop): Remove clobbers.
> 
>       * gcc.dg/vect/pr56787.c: New testcase.

        Jakub

Reply via email to