https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80867
--- Comment #10 from Richard Biener <rguenth at gcc dot gnu.org> --- I suggest the following (pre-approved if it works): Index: tree-vect-stmts.c =================================================================== --- tree-vect-stmts.c (revision 257091) +++ tree-vect-stmts.c (working copy) @@ -3159,7 +3159,7 @@ vectorizable_call (gimple *gs, gimple_st if (cfn != CFN_LAST) fndecl = targetm.vectorize.builtin_vectorized_function (cfn, vectype_out, vectype_in); - else + else if (callee) fndecl = targetm.vectorize.builtin_md_vectorized_function (callee, vectype_out, vectype_in); }