aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-vect-loop.c
diff options
context:
space:
mode:
authorIra Rosen <irar@il.ibm.com>2010-09-02 06:04:34 +0000
committerIra Rosen <irar@gcc.gnu.org>2010-09-02 06:04:34 +0000
commite4a707c4920ed5cd0bd960a5dc6af93d9f65015c (patch)
tree9c9e5da9865d27af8587c2639c172cccde7e0437 /gcc/tree-vect-loop.c
parent282ac51f24b21591be9bfbc8570fc63d33f0a5f6 (diff)
downloadgcc-e4a707c4920ed5cd0bd960a5dc6af93d9f65015c.zip
gcc-e4a707c4920ed5cd0bd960a5dc6af93d9f65015c.tar.gz
gcc-e4a707c4920ed5cd0bd960a5dc6af93d9f65015c.tar.bz2
tree-vectorizer.h (get_later_stmt): New function.
* tree-vectorizer.h (get_later_stmt): New function. (vect_analyze_data_ref_dependences): Add argument. * tree-vect-loop.c (vect_analyze_loop): Update call to vect_analyze_data_ref_dependences. * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): New function. (vect_analyze_data_ref_dependence): Add argument for basic block dependencies. Check dependencies in basic block vectorization. (vect_analyze_data_ref_dependences): Add argument and update call to vect_analyze_data_ref_dependences. * tree-vect-slp.c (vect_find_last_store_in_slp_instance): New. (vect_bb_vectorizable_with_dependencies): New. (vect_slp_analyze_bb): Check dependencies in basic block. (vect_schedule_slp_instance): Insert stores before the last store in SLP instance. From-SVN: r163757
Diffstat (limited to 'gcc/tree-vect-loop.c')
-rw-r--r--gcc/tree-vect-loop.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/tree-vect-loop.c b/gcc/tree-vect-loop.c
index 21dca3a..2ed8c76 100644
--- a/gcc/tree-vect-loop.c
+++ b/gcc/tree-vect-loop.c
@@ -1378,7 +1378,7 @@ vect_analyze_loop_operations (loop_vec_info loop_vinfo)
loop_vec_info
vect_analyze_loop (struct loop *loop)
{
- bool ok;
+ bool ok, dummy;
loop_vec_info loop_vinfo;
int max_vf = MAX_VECTORIZATION_FACTOR;
int min_vf = 2;
@@ -1444,7 +1444,7 @@ vect_analyze_loop (struct loop *loop)
the dependences.
FORNOW: fail at the first data dependence that we encounter. */
- ok = vect_analyze_data_ref_dependences (loop_vinfo, NULL, &max_vf);
+ ok = vect_analyze_data_ref_dependences (loop_vinfo, NULL, &max_vf, &dummy);
if (!ok
|| max_vf < min_vf)
{