https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64191
--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> --- The tree-vect-stmts.c change is fine of course. As for loops not being DCEd if they have only clobbers in them that preclude that, isn't that optimized away by RTL optimizers anyway? Or perhaps we could do something about in the loop pipeline, but IMHO changing DCE is too big and too dangerous hammer.