https://gcc.gnu.org/bugzilla/show_bug.cgi?id=36384
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- during VRP1 removes the casts now. So I don't know if this bug should be closed as fixed or not.
pinskia at gcc dot gnu.org via Gcc-bugs Wed, 02 Jun 2021 19:06:50 -0700
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=36384
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- during VRP1 removes the casts now. So I don't know if this bug should be closed as fixed or not.