https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83202
--- Comment #6 from Richard Biener <rguenth at gcc dot gnu.org> --- There are multiple issues reflected in this bug. The last commit addressed the SLP cost model thing (not fixing any testcase on its own).