From 587aa06343905910d85ff1980cad0e3be57984b1 Mon Sep 17 00:00:00 2001 From: Richard Guenther Date: Tue, 14 Apr 2009 13:50:18 +0000 Subject: tree-cfg.c (verify_gimple_assign_unary): Adjust vector code verification. 2000-04-14 Richard Guenther * tree-cfg.c (verify_gimple_assign_unary): Adjust vector code verification. (verify_gimple_assign_binary): Likewise. Handle shifts and rotates correctly. (verify_gimple_phi): Print the mismatched argument position. * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Fix types. (vect_update_init_of_dr): Likewise. * matrix-reorg.c (transform_access_sites): Do what the comment suggests. * omp-low.c (expand_omp_atomic_pipeline): Use the correct types. From-SVN: r146035 --- gcc/tree-vect-loop-manip.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'gcc/tree-vect-loop-manip.c') diff --git a/gcc/tree-vect-loop-manip.c b/gcc/tree-vect-loop-manip.c index 0edcccb..ae578f09 100644 --- a/gcc/tree-vect-loop-manip.c +++ b/gcc/tree-vect-loop-manip.c @@ -1639,9 +1639,9 @@ vect_update_ivs_after_vectorizer (loop_vec_info loop_vinfo, tree niters, if (POINTER_TYPE_P (TREE_TYPE (init_expr))) ni = fold_build2 (POINTER_PLUS_EXPR, TREE_TYPE (init_expr), init_expr, - fold_convert (sizetype, - fold_build2 (MULT_EXPR, TREE_TYPE (niters), - niters, step_expr))); + fold_build2 (MULT_EXPR, sizetype, + fold_convert (sizetype, niters), + step_expr)); else ni = fold_build2 (PLUS_EXPR, TREE_TYPE (init_expr), fold_build2 (MULT_EXPR, TREE_TYPE (init_expr), @@ -1926,7 +1926,8 @@ vect_update_init_of_dr (struct data_reference *dr, tree niters) niters = fold_build2 (MULT_EXPR, sizetype, fold_convert (sizetype, niters), fold_convert (sizetype, DR_STEP (dr))); - offset = fold_build2 (PLUS_EXPR, sizetype, offset, niters); + offset = fold_build2 (PLUS_EXPR, sizetype, + fold_convert (sizetype, offset), niters); DR_OFFSET (dr) = offset; } -- cgit v1.1