https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120903
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- I think this is by designed. __od.0_5 = (long unsigned int) &r; __os.1_6 = (long unsigned int) a_2(D); if (__od.0_5 < __os.1_6) Can't be optimized away.