[Bug tree-optimization/50417] regression: memcpy with known alignment
olegendo at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Jul 8 12:42:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50417
--- Comment #13 from Oleg Endo <olegendo at gcc dot gnu.org> ---
(In reply to rguenther@suse.de from comment #12)
>
> No, because the access is performed as 'int'.
>
> > Why should memcpy be any different?
>
> Because the memcpy stmt doesn't constitute a memory access but a function
> call.
Yeah, that might be how things are handled internally. But that doesn't mean
the optimization in question can't / shouldn't be done. GCC does even more
"evil" things with function calls such as replacing printf with puts,
propagating arguments into functions, inlining... So ... uhm ... I'm afraid I
don't get the point.
More information about the Gcc-bugs
mailing list