diff options
author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-03-18 10:25:42 +0000 |
---|---|---|
committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-03-18 10:25:42 +0000 |
commit | 07e3bcbf2ba9a8ff9268640683972b31b31d4014 (patch) | |
tree | d1488179bfed051c219f22ecde86646c070342c7 /gcc/tree-vect-slp.c | |
parent | 8ddeb59a216770c29f62ccd6c8d5878497823413 (diff) | |
download | gcc-07e3bcbf2ba9a8ff9268640683972b31b31d4014.tar.gz |
2013-03-18 Richard Biener <rguenther@suse.de>
* tree-data-ref.h (find_data_references_in_loop): Declare.
* tree-data-ref.c (get_references_in_stmt): Use a stack
vector pre-allocated in the callers.
(find_data_references_in_stmt): Adjust.
(graphite_find_data_references_in_stmt): Likewise.
(create_rdg_vertices): Likewise.
(find_data_references_in_loop): Export.
* tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
Compute dependences here...
(vect_analyze_data_refs): ...not here. When we encounter
a non-vectorizable data reference in basic-block vectorization
truncate the data reference vector. Do not bother to
fixup data-dependence information for gather loads.
* tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
of data references, as reported.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@196775 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-vect-slp.c')
-rw-r--r-- | gcc/tree-vect-slp.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gcc/tree-vect-slp.c b/gcc/tree-vect-slp.c index e184326c3b5..8567eac0df2 100644 --- a/gcc/tree-vect-slp.c +++ b/gcc/tree-vect-slp.c @@ -2078,7 +2078,6 @@ static bb_vec_info vect_slp_analyze_bb_1 (basic_block bb) { bb_vec_info bb_vinfo; - vec<ddr_p> ddrs; vec<slp_instance> slp_instances; slp_instance instance; int i; @@ -2100,8 +2099,7 @@ vect_slp_analyze_bb_1 (basic_block bb) return NULL; } - ddrs = BB_VINFO_DDRS (bb_vinfo); - if (!ddrs.length ()) + if (BB_VINFO_DATAREFS (bb_vinfo).length () < 2) { if (dump_enabled_p ()) dump_printf_loc (MSG_MISSED_OPTIMIZATION, vect_location, |