From b3832a9f88b62b7ec6a81743febef8cc5369d535 Mon Sep 17 00:00:00 2001 From: Dorit Nuzman Date: Thu, 22 Feb 2007 08:16:18 +0000 Subject: re PR tree-optimization/30858 (ice for legal code with -O2 -ftree-vectorize) PR tree-optimization/30858 * tree-vectorizer.c (vect_is_simple_reduction): Check that the stmts in the reduction cycle have a single use in the loop. * tree-vectorizer.h (relevant): Add documentation. From-SVN: r122220 --- gcc/tree-vectorizer.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'gcc/tree-vectorizer.h') diff --git a/gcc/tree-vectorizer.h b/gcc/tree-vectorizer.h index dd41f2b2b15..4f0e7b95e82 100644 --- a/gcc/tree-vectorizer.h +++ b/gcc/tree-vectorizer.h @@ -175,7 +175,15 @@ enum stmt_vec_info_type { /* Indicates whether/how a variable is used in the loop. */ enum vect_relevant { vect_unused_in_loop = 0, + + /* defs that feed computations that end up (only) in a reduction. These + defs may be used by non-reduction stmts, but eventually, any + computations/values that are affected by these defs are used to compute + a reduction (i.e. don't get stored to memory, for example). We use this + to identify computations that we can change the order in which they are + computed. */ vect_used_by_reduction, + vect_used_in_loop }; -- cgit v1.2.1