diff options
author | Richard Sandiford <richard.sandiford@arm.com> | 2019-12-31 15:32:06 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2019-12-31 15:32:06 +0000 |
commit | dc176c3ccd6a8cd3f809f3c1549ad00674061eb5 (patch) | |
tree | e3031a3fa6224b66dbc492230ee7996572dd0cbc /gcc/c/c-errors.c | |
parent | 2c8297996a7ab3496c5d2f798cdbe4cab749468e (diff) | |
download | gcc-dc176c3ccd6a8cd3f809f3c1549ad00674061eb5.zip gcc-dc176c3ccd6a8cd3f809f3c1549ad00674061eb5.tar.gz gcc-dc176c3ccd6a8cd3f809f3c1549ad00674061eb5.tar.bz2 |
Fix EXTRACT_LAST_REDUCTION segfault
This code:
/* Make sure we don't accidentally use the old condition. */
cond_expr = NULL_TREE;
was misplaced, since it triggered even when we needed to force the
original unmodified cond_expr into a mask temporary and then invert it.
2019-12-31 Richard Sandiford <richard.sandiford@arm.com>
gcc/
* tree-vect-stmts.c (vectorizable_condition): Only nullify cond_expr
if we've created a new condition. Don't nullify it if we've decided
to keep it and then invert the result.
gcc/testsuite/
* gcc.dg/vect/vect-cond-reduc-6.c: New test.
From-SVN: r279804
Diffstat (limited to 'gcc/c/c-errors.c')
0 files changed, 0 insertions, 0 deletions