[Bug tree-optimization/84794] memcpy/memmove between a struct and its first member not eliminated

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Sep 6 02:43:09 GMT 2021


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84794

--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
One simple way of doing this is seeing if ptr_difference_const returns true and
the difference is 0.  I have not checked if this works but it just might.


More information about the Gcc-bugs mailing list