if-conv: Restore MASK_CALL conversion [PR108888]
authorAndre Vieira <andre.simoesdiasvieira@arm.com>
Tue, 11 Apr 2023 09:07:43 +0000 (10:07 +0100)
committerAndre Vieira <andre.simoesdiasvieira@arm.com>
Tue, 11 Apr 2023 09:07:43 +0000 (10:07 +0100)
commit58c8c1b383bc3c286d6527fc6e8fb62463f9a877
tree7aab8f1d83005d6f753fc6835882f2b072abf794
parenta213e2c965382c24fe391ee5798effeba8da0fdf
if-conv: Restore MASK_CALL conversion [PR108888]

The original patch to fix this PR broke the if-conversion of calls into
IFN_MASK_CALL.  This patch restores that original behaviour and makes sure the
tests added earlier specifically test inbranch SIMD clones.

gcc/ChangeLog:

PR tree-optimization/108888
* tree-if-conv.cc (predicate_statements): Fix gimple call check.

gcc/testsuite/ChangeLog:

* gcc.dg/vect/vect-simd-clone-16.c: Make simd clone inbranch only.
* gcc.dg/vect/vect-simd-clone-17.c: Likewise.
* gcc.dg/vect/vect-simd-clone-18.c: Likewise.
gcc/testsuite/gcc.dg/vect/vect-simd-clone-16.c
gcc/testsuite/gcc.dg/vect/vect-simd-clone-17.c
gcc/testsuite/gcc.dg/vect/vect-simd-clone-18.c
gcc/tree-if-conv.cc