[tree-ssa-lno] vectorizer patch.

Andreas Jaeger aj@suse.de
Thu Jan 1 18:47:00 GMT 2004


Dorit Naishlos <DORIT@il.ibm.com> writes:

Just some stylistic nits:

>       * tree-vectorizer.c: new file. Implements loop vectorization pass.

Please use full sentences starting with a capital letter, e.g.
New file.


>       * tree-vectorizer.h: new file.
>       * Makefile.in: new files tree-vectorizer.c,h

And close with a point:

Add new files tree-vectorizer.c,h.

>       * tree-dump.c: (dump_files): new dump file for the new
>       vectorization pass.
>       * tree.h: (TDI_vect): Same.

Where does same apply to?  You might want to move it *after*
timevar.def if that comment applies.


>       * timevar.def (TV_TREE_VECTORIZATION): support new
>       vectorization pass.
>       * opts.c: (flag_tree_vetorize): new flag to enable/disable the
>       new vectorization pass.
>       * flags.h: Same.
>       * toplev.c: Same.
>       * common.opt: (ftree-vectorize): Same.
>       * docs/invoke.texi: Document above new options.
>       * tree-optimize.c: (optimize_function_tree): Invoke the new
>       vetorization pass.
>       * tree-flow.h: (struct stmt_ann_d): New field (aux) to allow
>       recording information per stmt.
>       * tree-data-ref.c (vec_analyze_array): New function, exposing
>       API to the vectorizer.
>       (vec_array_base_name_differ_p): New function, exposing API to
>       the vectorizer.
>       * tree-data-ref.h: Same.
>       * defaults.h: (UNITS_PER_SIMD_WORD): Define.
>       * config/rs6000/rs6000.h: Same.
If it's the same, you need to add (UNITS_PER_SIMD_WORD).

>       * target-def.h (TARGET_VECTYPE_FOR_SCALAR_TYPE): Declare a new
>       target hook for vectorization.
>       * target.h (vectype_for_scalar_type): Same.
>       * config/rs6000/rs6000.c: (rs6000_vectype_for_scalar_type):
>       implement the above new target hook.

Cheers,
Andreas
-- 
 Andreas Jaeger, aj@suse.de, http://www.suse.de/~aj
  SuSE Linux AG, Maxfeldstr. 5, 90409 Nürnberg, Germany
   GPG fingerprint = 93A3 365E CE47 B889 DF7F  FED1 389A 563C C272 A126
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 188 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20040101/a1259f48/attachment.sig>


More information about the Gcc-patches mailing list