https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122260
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> --- I had a patch that worked some of the time but failed in some cases (I don't fully remember the details on when it was failing though) when I was working for Marvell. I thought I pushed it to an a branch on gcc-old.git repo but I can't find it right now.
