From 8d358a4aae876bfa44501f8d2830564fbe6f1cdd Mon Sep 17 00:00:00 2001 From: Ira Rosen Date: Thu, 25 Oct 2007 16:41:45 +0000 Subject: re PR tree-optimization/33833 (ICE in build2_stat, at tree.c:3110 at -O3, tree-vectorizer) PR tree-optimization/33833 * tree-vect-analyze.c (vect_analyze_data_refs): Use POINTER_PLUS_EXPR and convert init to sizetype in inner_base construction. From-SVN: r129628 --- gcc/tree-vect-analyze.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'gcc/tree-vect-analyze.c') diff --git a/gcc/tree-vect-analyze.c b/gcc/tree-vect-analyze.c index 8975e64..2bb28da 100644 --- a/gcc/tree-vect-analyze.c +++ b/gcc/tree-vect-analyze.c @@ -3287,10 +3287,11 @@ vect_analyze_data_refs (loop_vec_info loop_vinfo) /* Build a reference to the first location accessed by the inner-loop: *(BASE+INIT). (The first location is actually - BASE+INIT+OFFSET, but we add OFFSET separately later. */ - tree inner_base = build_fold_indirect_ref - (fold_build2 (PLUS_EXPR, - TREE_TYPE (base), base, init)); + BASE+INIT+OFFSET, but we add OFFSET separately later). */ + tree inner_base = build_fold_indirect_ref + (fold_build2 (POINTER_PLUS_EXPR, + TREE_TYPE (base), base, + fold_convert (sizetype, init))); if (vect_print_dump_info (REPORT_DETAILS)) { -- cgit v1.1