diff options
author | Richard Biener <rguenther@suse.de> | 2015-10-14 08:32:25 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2015-10-14 08:32:25 +0000 |
commit | ddf56386c14bc6db5e6d5eb41e58da8253b6102a (patch) | |
tree | 61b148260abf3b7df84bf93f6cb3b0ccc38fe1e9 /gcc/tree-vect-data-refs.c | |
parent | ac8a1965363534d831c6b784bd69aa18b846402a (diff) | |
download | gcc-ddf56386c14bc6db5e6d5eb41e58da8253b6102a.zip gcc-ddf56386c14bc6db5e6d5eb41e58da8253b6102a.tar.gz gcc-ddf56386c14bc6db5e6d5eb41e58da8253b6102a.tar.bz2 |
tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Reset info at start.
2015-10-14 Richard Biener <rguenther@suse.de>
* tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
Reset info at start.
(vect_analyze_group_access_1): Add debug print.
* tree-vect-loop.c (vect_get_single_scalar_iteration_cost): Rename ...
(vect_compute_single_scalar_iteration_cost): ... to this.
(vect_analyze_loop_2): Adjust.
* tree-vect-slp.c (struct _slp_oprnd_info): Move from ...
* tree-vectorizer.h: ... here.
(add_stmt_info_to_vec): Remove.
* tree-vect-stmts.c (record_stmt_cost): Inline add_stmt_info_to_vec.
From-SVN: r228806
Diffstat (limited to 'gcc/tree-vect-data-refs.c')
-rw-r--r-- | gcc/tree-vect-data-refs.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/tree-vect-data-refs.c b/gcc/tree-vect-data-refs.c index 8a4d489..c3db22f 100644 --- a/gcc/tree-vect-data-refs.c +++ b/gcc/tree-vect-data-refs.c @@ -1352,6 +1352,10 @@ vect_enhance_data_refs_alignment (loop_vec_info loop_vinfo) dump_printf_loc (MSG_NOTE, vect_location, "=== vect_enhance_data_refs_alignment ===\n"); + /* Reset data so we can safely be called multiple times. */ + LOOP_VINFO_MAY_MISALIGN_STMTS (loop_vinfo).truncate (0); + LOOP_VINFO_PEELING_FOR_ALIGNMENT (loop_vinfo) = 0; + /* While cost model enhancements are expected in the future, the high level view of the code at this time is as follows: @@ -2151,6 +2155,10 @@ vect_analyze_group_access_1 (struct data_reference *dr) return false; } + if (dump_enabled_p ()) + dump_printf_loc (MSG_MISSED_OPTIMIZATION, vect_location, + "Two or more load stmts share the same dr.\n"); + /* For load use the same data-ref load. */ GROUP_SAME_DR_STMT (vinfo_for_stmt (next)) = prev; |