https://gcc.gnu.org/bugzilla/show_bug.cgi?id=39305
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED Target Milestone|--- |9.0 --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- A slightly different but better patch was done for GCC 9. r9-4967 . r9-4967 checks if the exit was an IV which is very similar to what your check was trying to do.