]> 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>
Wed, 2 Apr 2025 12:00:18 +0000 (14:00 +0200)
commit534a7895e969793285c77a42aca62d426cd56c1e
tree988611b4541e66ff6161c0288079974a09afd494
parent2f87983131eab6bdad7da4c6ef9ce026966966a5
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.

(cherry picked from commit 7950d4cceb9fc7559b1343c95fc651cefbe287a0)
gcc/testsuite/gcc.dg/vect/pr119145.c [new file with mode: 0644]
gcc/tree-vectorizer.cc