https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99542

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 50374
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50374&action=edit
gcc11-pr99542.patch

Untested fix.  There is another difference from i386, for !TREE_PUBLIC
(node->decl) the i386 version never returns > 1, but instead just provides the
version which is the best for the current TU.  Wouldn't it make sense on
aarch64 too?  Or does it hope that the unused entrypoints will be optimized
away?
I'm not sure it happens, because simd cloning is fairly late IPA pass.

Reply via email to