]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-optimization/119145 - avoid stray .MASK_CALL after vectorization
authorRichard Biener <rguenther@suse.de>
Fri, 7 Mar 2025 09:15:20 +0000 (10:15 +0100)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 7 Mar 2025 11:16:48 +0000 (12:16 +0100)
commit7950d4cceb9fc7559b1343c95fc651cefbe287a0
tree9130722522de7cc86c289584ea8357a4d14285e0
parentb1d0ac28de643e7c810e407a0668737131cdcc00
tree-optimization/119145 - avoid stray .MASK_CALL after vectorization

When we BB vectorize an if-converted loop body we make sure to not
leave around .MASK_LOAD or .MASK_STORE created by if-conversion but
we failed to check for .MASK_CALL.

PR tree-optimization/119145
* tree-vectorizer.cc (try_vectorize_loop_1): Avoid BB
vectorizing an if-converted loop body when there's a .MASK_CALL
in the loop body.

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