http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57649
--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> --- How about backporting r187719? I don't remember whether there are any dependencies here, but ... it seems it's the first patch in the series to cleanup all this stuff.