https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125857
--- Comment #4 from Drea Pinski <pinskia at gcc dot gnu.org> --- is_gimple_ip_invariant most likely should be used when dealing with the return value. Yes this is undefined code but we still should not ICE. I thought we changed the return value for local addresses into null ptrs. Or maybe that was a different time.
