https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92638
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Target Milestone|--- |12.0 Status|NEW |RESOLVED --- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> --- After r12-155 which adds another DSE which will remove the memcpy, the dce right after that new dse is able to remove the malloc/free pair and then cdcde after sccp is able to remove the loop. So fixed.