https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110874
--- Comment #10 from Andrew Pinski <pinskia at gcc dot gnu.org> --- I am not happy with the patch I came up with but it does reduce the amount of iterating and 100% makes sure it is bound so it will work.