https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103390
--- Comment #5 from sandra at gcc dot gnu.org --- Created attachment 52107 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52107&action=edit -fdump-tree-original output from second test case Well, this is nuts. Unmodified code is generating 3 copies of the loop to compute "a + b" in the previous example, as well as the invalid copy-out code. I've got a patch to fix this now, just doing a few more experiments with it.