]> gcc.gnu.org Git - gcc.git/commit
tree-optimization/108816 - vect versioning check split confusion
authorRichard Biener <rguenther@suse.de>
Mon, 20 Feb 2023 09:59:15 +0000 (10:59 +0100)
committerRichard Biener <rguenther@suse.de>
Wed, 15 Mar 2023 09:08:26 +0000 (10:08 +0100)
commit02ff8c8ebcb7f9b0885946d17ff12523e7522b71
treeb64a8082d185e6904707490489a5490d7f0fcbcd
parent0a3642dde799ee2be9f2b60ec361191176390005
tree-optimization/108816 - vect versioning check split confusion

The split of the versioning condition assumes the definition is
in the condition block which is ensured by the versioning code.
But that only works when we actually have to insert any statements
for the versioning condition.  The following adjusts the guard
accordingly and asserts this condition.

PR tree-optimization/108816
* tree-vect-loop-manip.cc (vect_loop_versioning): Adjust
versioning condition split prerequesite, assert required
invariant.

* gcc.dg/torture/pr108816.c: New testcase.

(cherry picked from commit 63471c5008819bbf6ec32a6f4d8701fe57b96fa9)
gcc/testsuite/gcc.dg/torture/pr108816.c [new file with mode: 0644]
gcc/tree-vect-loop-manip.cc
This page took 0.071034 seconds and 5 git commands to generate.