Fix reduc_index calculation in vectorizable_condition
authorRichard Sandiford <richard.sandiford@arm.com>
Tue, 29 Oct 2019 10:41:45 +0000 (10:41 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Tue, 29 Oct 2019 10:41:45 +0000 (10:41 +0000)
commit1d149b7260bcc4c0c6367b3aea47a8b91a1cf345
tree4e6c65ed8087dd3436f8b1ddb9c0d2ab3ee5c840
parentb7ff7cef5005721e78d6936bed3ae1c059b4e8d2
Fix reduc_index calculation in vectorizable_condition

Fixes ICEs in gcc.target/aarch64/sve/clastb*.

2019-10-29  Richard Sandiford  <richard.sandiford@arm.com>

gcc/
* tree-vect-stmts.c (vectorizable_condition): Get the reduction
index for the COND_EXPR from stmt_info rather than reduc_info.

From-SVN: r277567
gcc/ChangeLog
gcc/tree-vect-stmts.c