https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117291
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- You could possibility change this function to use a worklist instead. But I am not sure having a tree depth this large is in normal code.