]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-optimization/105226 - avoid splitting abnormal edges
authorRichard Biener <rguenther@suse.de>
Tue, 12 Apr 2022 07:40:15 +0000 (09:40 +0200)
committerRichard Biener <rguenther@suse.de>
Thu, 21 Apr 2022 12:09:30 +0000 (14:09 +0200)
commit813b14ede7207555e65e6ce976ff0c04ab2b7875
treeccb25fbd65a0b71abd6f45d43a47f1c94576ecc0
parentb285999440c000685c4e4dae9c2a9a8a8fe9e176
tree-optimization/105226 - avoid splitting abnormal edges

Vectorizer loop versioning tries to version outer loops if possible
but fails to check whether it can actually split the single exit
edge as it will do.

2022-04-12  Richard Biener  <rguenther@suse.de>

PR tree-optimization/105226
* tree-vect-loop-manip.c (vect_loop_versioning): Verify
we can split the exit of an outer loop we choose to version.

* gcc.dg/pr105226.c: New testcase.

(cherry picked from commit 62d5bb0f35fb6ec373eaac942755585a633528a0)
gcc/testsuite/gcc.dg/pr105226.c [new file with mode: 0644]
gcc/tree-vect-loop-manip.c