]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-optimization/121194 - check LC PHIs can be vectorized
authorRichard Biener <rguenther@suse.de>
Mon, 21 Jul 2025 10:48:45 +0000 (12:48 +0200)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 21 Jul 2025 13:01:59 +0000 (15:01 +0200)
commit8ca85e95daca7f7c56d297fa7f2328e5385d446c
tree11055e3c836253f49e989c6add2e82d41836d3a6
parent47a7dcd4c027bcc98760043c3416aa354f42b40e
tree-optimization/121194 - check LC PHIs can be vectorized

With bools we can have the usual mismatch between mask and data
use.  Catch that, like we do elsewhere.

PR tree-optimization/121194
* tree-vect-loop.cc (vectorizable_lc_phi): Verify
vector types are compatible.

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