https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80155
--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> --- Created attachment 41030 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41030&action=edit first patch candidate First variant of an aggressive approach - never add IVs / loop carried dependencies in PRE. This first approach is leaner on compile-time / memory-use in PRE but eventually misses 2nd level optimizations by not performing PHI insertions on loop headers.