]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-optimization/114485 - neg induction with partial vectors
authorRichard Biener <rguenther@suse.de>
Thu, 4 Apr 2024 08:00:51 +0000 (10:00 +0200)
committerRichard Biener <rguenther@suse.de>
Fri, 3 May 2024 12:46:14 +0000 (14:46 +0200)
commita676581ddc49a6ead8edced7bb4b92aeceebde56
tree5539914b1de855a470eec7d16451786f5f6a4715
parent4950f6bcd3cce9deb630b76af42cd6d6968ba03f
tree-optimization/114485 - neg induction with partial vectors

We can't use vect_update_ivs_after_vectorizer for partial vectors,
the following fixes vect_can_peel_nonlinear_iv_p accordingly.

PR tree-optimization/114485
* tree-vect-loop-manip.cc (vect_can_peel_nonlinear_iv_p):
vect_step_op_neg isn't OK for partial vectors but only
for unknown niter.

* gcc.dg/vect/pr114485.c: New testcase.

(cherry picked from commit 85621f98d245004a6c9787dde21e0acc17ab2c50)
gcc/testsuite/gcc.dg/vect/pr114485.c [new file with mode: 0644]
gcc/tree-vect-loop-manip.cc