[Bug tree-optimization/106900] Regression after memchr optimization
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sat Sep 10 05:47:21 GMT 2022
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106900
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |diagnostic
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Looks like gcc can't figure out that isize can't be 0 even if there was a check
for integer_zerop (size) before hand.
There must be a way to add an assert there to allow gcc to figure that out.
More information about the Gcc-bugs
mailing list