diff options
author | Richard Sandiford <richard.sandiford@arm.com> | 2019-09-27 08:21:37 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2019-09-27 08:21:37 +0000 |
commit | 18908a56e18f15f84a91a4529923dd0878b2294f (patch) | |
tree | b2f92a73ab5a113db2ffc4d3ed440676e493d9bf /gcc/tree-data-ref.c | |
parent | 76bb5af63db66ccaee0f0ae59783eda972d0db83 (diff) | |
download | gcc-18908a56e18f15f84a91a4529923dd0878b2294f.zip gcc-18908a56e18f15f84a91a4529923dd0878b2294f.tar.gz gcc-18908a56e18f15f84a91a4529923dd0878b2294f.tar.bz2 |
Fix reduc_index==1 handling for COND_REDUCTION (PR91909)
The then/else order of the VEC_COND_EXPRs created by
vect_create_epilog_for_reduction meeds to line up with the
main VEC_COND_EXPR.
2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
gcc/
PR tree-optimization/91909
* tree-vect-loop.c (vect_create_epilog_for_reduction): Take a
reduc_index parameter. When handling COND_REDUCTION, make sure
that the reduction phi operand is in the correct arm of the
VEC_COND_EXPR.
(vectorizable_reduction): Pass reduc_index to the above.
From-SVN: r276175
Diffstat (limited to 'gcc/tree-data-ref.c')
0 files changed, 0 insertions, 0 deletions