]> 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>
Thu, 4 Apr 2024 11:09:19 +0000 (13:09 +0200)
commit85621f98d245004a6c9787dde21e0acc17ab2c50
treecb6509cf120832551261e20fd5ff6ec0f4244535
parent1c89d1b9dc8c4957a4ec3674f691595641fd279b
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.
gcc/testsuite/gcc.dg/vect/pr114485.c [new file with mode: 0644]
gcc/tree-vect-loop-manip.cc