https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96837
--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Joel Hutton <jo...@gcc.gnu.org>: https://gcc.gnu.org/g:97b798d80baf945ea28236eef3fa69f36626b579 commit r11-3559-g97b798d80baf945ea28236eef3fa69f36626b579 Author: Joel Hutton <joel.hut...@arm.com> Date: Wed Sep 30 15:08:13 2020 +0100 [SLP][VECT] Add check to fix 96837 The following patch adds a simple check to prevent slp stmts from vector constructors being rearranged. vect_attempt_slp_rearrange_stmts tries to rearrange to avoid a load permutation. This fixes PR target/96837 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96827 gcc/ChangeLog: 2020-09-29 Joel Hutton <joel.hut...@arm.com> PR target/96837 * tree-vect-slp.c (vect_analyze_slp): Do not call vect_attempt_slp_rearrange_stmts for vector constructors. gcc/testsuite/ChangeLog: 2020-09-29 Joel Hutton <joel.hut...@arm.com> PR target/96837 * gcc.dg/vect/bb-slp-49.c: New test.