]> git.ipfire.org Git - thirdparty/gcc.git/commit
vect: Fix shift-by-induction for single-lane slp
authorFeng Xue <fxue@os.amperecomputing.com>
Wed, 26 Jun 2024 14:02:53 +0000 (22:02 +0800)
committerFeng Xue <fxue@os.amperecomputing.com>
Sun, 30 Jun 2024 06:46:40 +0000 (14:46 +0800)
commit1ff5f8f8a05dd57620a1e2abbf87bd511b113cce
tree84363c2233731872e54bb648c2f0ed75cac1a771
parent1bcfed4c52bb2410ea71bf6e4d46026e18461f84
vect: Fix shift-by-induction for single-lane slp

Allow shift-by-induction for slp node, when it is single lane, which is
aligned with the original loop-based handling.

2024-06-26 Feng Xue <fxue@os.amperecomputing.com>

gcc/
* tree-vect-stmts.cc (vectorizable_shift): Allow shift-by-induction
for single-lane slp node.

gcc/testsuite/
* gcc.dg/vect/vect-shift-6.c
* gcc.dg/vect/vect-shift-7.c
gcc/testsuite/gcc.dg/vect/vect-shift-6.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/vect/vect-shift-7.c [new file with mode: 0644]
gcc/tree-vect-stmts.cc