This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] AV - Use distance vector


This patch updates auto vectorizer to use distance
vector info while analyzing data dependence. It uses
existing API to compute distance vector.

With this patch included test cases are auto vectorized.
This patch is also required to vectorize if-converted
loops.

Bootstrapped and tested on powerpc-darwin.

OK?
Thanks,
-
Devang

2004-09-15 Devang Patel <dpatel@apple.com>

* tree-data-ref.c (compute_distance_vector): Export.
* tree-data-ref.h (compute_distance_vector): Same.
* tree-vectorizer.c (vect_analyze_data_ref_dependence): new parameter,
loop_vinfo. Use distance vector.
(vect_analyze_data_ref_dependences): Supply new parameter.
(vect_analyze_loop): Analyze operations before data dependences.


testsuite

* gcc.dg/vect/vect-20040915-1.c: New test.

Attachment: ifc2_fsf_mainline.2.0.diff
Description: Binary data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]