diff options
author | dorit <dorit@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-04-17 07:31:45 +0000 |
---|---|---|
committer | dorit <dorit@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-04-17 07:31:45 +0000 |
commit | 6fada017791035520abe9ec079dede5320c92e57 (patch) | |
tree | beb8051e46aefde6d663dc7d1c41b4fff622187c /gcc/tree-vect-patterns.c | |
parent | 0e4744ac170e6f8048ef54eaab18af883ffe14dc (diff) | |
download | gcc-6fada017791035520abe9ec079dede5320c92e57.tar.gz |
* tree-vectorizer.h (stmt_vec_info_type): Add enum value
induc_vec_info_type.
(vectorizable_induction): New function declaration.
* tree-vect-transform.c (get_initial_def_for_induction): No need to
check if already vectorized. Find first place in BB where new stmts
can be inserted. Takes only one argument.
(vectorizable_induction): New function.
(vect_transform_stmt): Add case for induc_vec_info_type to call
vectorizable_induction.
(vect_transform_loop): Consider phis for vectorization.
* tree-vect-analyze.c (vect_determine_vectorization_factor): Simplify
condition.
(analyze_operations): Call vectorizable_induction when analyzing phis.
Fix comment.
(vect_mark_stmts_to_be_vectorized): Remove redundant checks.
(vect_mark_relevant): Include phis in relevance analysis.
(vect_mark_stmts_to_be_vectorize): Likewise.
* tree-vect-patterns.c (widened_name_p): Remove obsolete asserts.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123910 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-vect-patterns.c')
-rw-r--r-- | gcc/tree-vect-patterns.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/gcc/tree-vect-patterns.c b/gcc/tree-vect-patterns.c index 63255bd3fb1..5773344abc5 100644 --- a/gcc/tree-vect-patterns.c +++ b/gcc/tree-vect-patterns.c @@ -109,10 +109,6 @@ widened_name_p (tree name, tree use_stmt, tree *half_type, tree *def_stmt) if (!vect_is_simple_use (oprnd0, loop_vinfo, &dummy, &dummy, &dt)) return false; - if (dt != vect_invariant_def && dt != vect_constant_def - && dt != vect_loop_def) - return false; - return true; } |