[Bug tree-optimization/101423] [12 Regression] ICE in vect_schedule_slp_node, at tree-vect-slp.c:7113 since r12-1951-ga3aaba68405751ba
rguenth at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Jul 12 08:24:12 GMT 2021
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101423
--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
OK, so the issue is that there's no scalar trapping operation but
gimple_could_trap_p returns true for the internal function calls used by
SLP pattern recog, in this case .VEC_ADDSUB. gimple_could_trap_p_1 just has
case GIMPLE_CALL:
t = gimple_call_fndecl (s);
/* Assume that calls to weak functions may trap. */
if (!t || !DECL_P (t) || DECL_WEAK (t))
return true;
return false;
but internal functions do not have a decl. I suppose this wants to test for
indirect calls in addition to calls to weak functions which means it's
off for internal functions.
More information about the Gcc-bugs
mailing list