tree-optimization/112618 - unused .MASK_CALL
commit57c028acbec4f7b594e6b024e02d6c799b51e03d
authorRichard Biener <rguenther@suse.de>
Mon, 20 Nov 2023 10:12:43 +0000 (20 11:12 +0100)
committerRichard Biener <rguenther@suse.de>
Mon, 20 Nov 2023 13:58:10 +0000 (20 14:58 +0100)
treea3eaf40a588eaf027b798e6e90ae573ebcbb86f6
parent3b34902417259031823bff7f853f615a60464bbd
tree-optimization/112618 - unused .MASK_CALL

We have to make sure to remove unused .MASK_CALL internal function
calls after vectorization.

PR tree-optimization/112618
* tree-vect-loop.cc (vect_transform_loop_stmt): For not
relevant and unused .MASK_CALL make sure we remove the
scalar stmt.

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