]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-optimization/120357 - ICE with early break vectorization
authorRichard Biener <rguenther@suse.de>
Fri, 30 May 2025 12:11:47 +0000 (14:11 +0200)
committerRichard Biener <rguenther@suse.de>
Sat, 31 May 2025 12:42:10 +0000 (14:42 +0200)
commitdce4da51ab66c3abb84448326910cd42f6fe2499
tree8fd3551dbefdcfa60b695b82507fbfd4cbf2cd11
parente131ba3de5f487f5e957ba1b011c960fce557c7b
tree-optimization/120357 - ICE with early break vectorization

When doing early break vectorization of a loop with a conditional
reduction the epilog creation code is confused as to before which exit
to insert the conditional reduction induction IV update.  The
following make sure this is done before the main IV exit.

PR tree-optimization/120357
* tree-vect-loop.cc (vect_create_epilog_for_reduction): Create
the conditional reduction induction IV increment before the
main IV exit.

* gcc.dg/vect/vect-early-break_136-pr120357.c: New testcase.
gcc/testsuite/gcc.dg/vect/vect-early-break_136-pr120357.c [new file with mode: 0644]
gcc/tree-vect-loop.cc