]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-optimization/121509 - failure to detect unvectorizable loop
authorRichard Biener <rguenther@suse.de>
Tue, 12 Aug 2025 07:51:54 +0000 (09:51 +0200)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 12 Aug 2025 09:05:35 +0000 (11:05 +0200)
commitc5dab6fb402c93a92f6aa808c43956dfb9328190
tree36dc2336342f2fd316b76ea45bac37514c62ff22
parenta440b382e43203857de9195eb526c4a16f21ceb1
tree-optimization/121509 - failure to detect unvectorizable loop

With the hybrid stmt detection no longer working as a gate-keeper
to detect unhandled stmts we have to, and can, detect those earlier.
The appropriate place is vect_mark_stmts_to_be_vectorized where
for trivially relevant PHIs we can stop analyzing when the PHI
wasn't classified as a known def during vect_analyze_scalar_cycles.

PR tree-optimization/121509
* tree-vect-stmts.cc (vect_mark_stmts_to_be_vectorized):
Fail early when we detect a relevant but not handled PHI.

* gcc.dg/vect/pr121509.c: New testcase.
gcc/testsuite/gcc.dg/vect/pr121509.c [new file with mode: 0644]
gcc/tree-vect-stmts.cc