https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81611
Alexandre Oliva <aoliva at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |aoliva at gcc dot gnu.org --- Comment #3 from Alexandre Oliva <aoliva at gcc dot gnu.org> --- I see the same problem on x86_64. Compiling with -fno-tree-forwprop stops str_6 from being propagated out of the loop, so it dies at the str_11 def and everything optimizes nicely.