re PR tree-optimization/77503 (ICE in vect_transform_stmt compiling postgresql)
authorBin Cheng <bin.cheng@arm.com>
Thu, 15 Sep 2016 16:31:35 +0000 (16:31 +0000)
committerBin Cheng <amker@gcc.gnu.org>
Thu, 15 Sep 2016 16:31:35 +0000 (16:31 +0000)
commit7e16ce79a4033d8bba49a1f388041f1ba52f1481
tree64c5356862fbe772dbead17cbce71cf117afdcd0
parent7c05f5c46d5b0db80d65bec5f14a893d0e939c85
re PR tree-optimization/77503 (ICE in vect_transform_stmt compiling postgresql)

PR tree-optimization/77503
* tree-vect-loop.c (vectorizable_reduction): Record reduction
code for CONST_COND_REDUCTION at analysis stage and use it at
transform stage.
* tree-vectorizer.h (struct _stmt_vec_info): New field.
(STMT_VINFO_VEC_CONST_COND_REDUC_CODE): New macro.
* tree-vect-stmts.c (new_stmt_vec_info): Initialize above new
field.

gcc/testsuite
* gcc.dg/vect/pr77503.c: New test.

From-SVN: r240166
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/vect/pr77503.c [new file with mode: 0644]
gcc/tree-vect-loop.c
gcc/tree-vect-stmts.c
gcc/tree-vectorizer.h