https://gcc.gnu.org/bugzilla/show_bug.cgi?id=128292
--- Comment #2 from Drea Pinski <pinskia at gcc dot gnu.org> --- >From the patch which fixes this: "that we also need to update or invalidate range information."s So yes I am 99% sure this was the correct fix.
