Fix SIMD call SLP discovery
commit6dc44436301143a286e3b45de0673af012299eba
authorRichard Biener <rguenther@suse.de>
Thu, 5 Oct 2023 08:26:34 +0000 (5 10:26 +0200)
committerRichard Biener <rguenther@suse.de>
Thu, 5 Oct 2023 11:35:14 +0000 (5 13:35 +0200)
tree2af155328cf2ebb77c61a27a8e877c0ccfe936e5
parentb583a2940af90d03f535648fef111cb158933f7d
Fix SIMD call SLP discovery

When we do SLP discovery of SIMD calls we run into the issue that
when the call is neither builtin nor internal function we have
cfn == CFN_LAST but internal_fn_p of that returns true.  Since
IFN_LAST isn't vectorizable we fail spuriously.

Fixed by checking for cfn != CFN_LAST && internal_fn_p (cfn)
instead.

* tree-vect-slp.cc (vect_build_slp_tree_1): Do not
ask for internal_fn_p (CFN_LAST).
gcc/tree-vect-slp.cc