https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67329
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- This is a cost issue. And even has this comment in the testcase: /* See PR63679 and PR64159, if the target forces the initializer to memory then DOM is not able to perform this optimization. */