diff options
author | dorit <dorit@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-09-26 06:28:01 +0000 |
---|---|---|
committer | dorit <dorit@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-09-26 06:28:01 +0000 |
commit | 54ff9178dda11f7d5768aa66a1c3df4ff7e80e76 (patch) | |
tree | c275619e9695f87f3de38878ab0f1f4d45f5a457 /gcc/tree-vectorizer.c | |
parent | 0d72fa67144512c384638423ad519c0ce9135c76 (diff) | |
download | gcc-54ff9178dda11f7d5768aa66a1c3df4ff7e80e76.tar.gz |
PR tree-optimization/37574
* tree-vectorizer.c (vect_is_simple_use): Fix indentation.
* tree-vect-transform.c (vect_get_constant_vectors): Use vectype
instead of vector_type for constants. Take computation out of loop.
(vect_get_vec_def_for_operand): Use only vectype for constant case,
and use only vector_type for invariant case.
(get_initial_def_for_reduction): Use vectype instead of vector_type.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@140685 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-vectorizer.c')
-rw-r--r-- | gcc/tree-vectorizer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/tree-vectorizer.c b/gcc/tree-vectorizer.c index 47821e89a9e..9a3a9f3c8a7 100644 --- a/gcc/tree-vectorizer.c +++ b/gcc/tree-vectorizer.c @@ -2036,11 +2036,11 @@ vect_is_simple_use (tree operand, loop_vec_info loop_vinfo, gimple *def_stmt, return true; } if (is_gimple_min_invariant (operand)) - { + { *def = operand; *dt = vect_invariant_def; return true; - } + } if (TREE_CODE (operand) == PAREN_EXPR) { |