From: Richard Biener Date: Mon, 28 May 2018 10:31:46 +0000 (+0000) Subject: re PR middle-end/85933 (FAIL: gcc.dg/sso/p8.c -O3 -finline-functions (internal... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3b1cffccce40e80eeb5f24893ce4fbd0e242b319;p=gcc.git re PR middle-end/85933 (FAIL: gcc.dg/sso/p8.c -O3 -finline-functions (internal compiler error)) 2018-05-28 Richard Biener PR tree-optimization/85933 * tree-vect-data-refs.c (vect_record_base_alignments): Only look at stmts marked as vectorizable. From-SVN: r260848 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index daf697caf56..58ab2b4ed46 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,15 @@ +2018-05-28 Richard Biener + + PR tree-optimization/85933 + * tree-vect-data-refs.c (vect_record_base_alignments): Only + look at stmts marked as vectorizable. + +2018-05-28 Richard Biener + + PR tree-optimization/85934 + * tree-vect-generic.c (expand_vector_operations_1): Hoist + vector boolean check before scalar optimization. + 2018-05-28 Jakub Jelinek * doc/invoke.texi (ARM Options): Use @item instead of @itemx diff --git a/gcc/tree-vect-data-refs.c b/gcc/tree-vect-data-refs.c index 331423af821..f46eb467da6 100644 --- a/gcc/tree-vect-data-refs.c +++ b/gcc/tree-vect-data-refs.c @@ -829,7 +829,10 @@ vect_record_base_alignments (vec_info *vinfo) data_reference *dr; unsigned int i; FOR_EACH_VEC_ELT (vinfo->datarefs, i, dr) - if (!DR_IS_CONDITIONAL_IN_STMT (dr)) + { + gimple *stmt = DR_STMT (dr); + if (!DR_IS_CONDITIONAL_IN_STMT (dr) + && STMT_VINFO_VECTORIZABLE (vinfo_for_stmt (stmt))) { gimple *stmt = DR_STMT (dr); vect_record_base_alignment (vinfo, stmt, &DR_INNERMOST (dr)); @@ -843,6 +846,7 @@ vect_record_base_alignments (vec_info *vinfo) (vinfo, stmt, &STMT_VINFO_DR_WRT_VEC_LOOP (stmt_info)); } } + } } /* Return the target alignment for the vectorized form of DR. */