]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-optimization/121059 - fixup loop mask query
authorRichard Biener <rguenther@suse.de>
Mon, 14 Jul 2025 12:09:28 +0000 (14:09 +0200)
committerRichard Biener <rguenther@suse.de>
Tue, 14 Oct 2025 11:48:56 +0000 (13:48 +0200)
commit234f122a9be5cc2a30d2a9e94c2fc9cde1d5a64d
treefa96fd82e1ad99a70f0bad1746afeda2a0ba5186
parenta35df04c99f01f2cb6e1401e615b497a4989c9ff
tree-optimization/121059 - fixup loop mask query

When we opportunistically mask an operand of a AND with an already
available loop mask we need to query that set with the correct number
of masks we expect.

PR tree-optimization/121059
* tree-vect-stmts.cc (vectorizable_operation): Query
scalar_cond_masked_set with the correct number of masks.

* gcc.dg/vect/pr121059.c: New testcase.

Co-Authored-By: Richard Sandiford <richard.sandiford@arm.com>
(cherry picked from commit 71be87055548cf942c7bc56d10ffd479db8569e4)
gcc/testsuite/gcc.dg/vect/pr121059.c [new file with mode: 0644]
gcc/tree-vect-stmts.cc