[Bug middle-end/41455] memcpy not tail called if it's a struct assignment

2017-12-06 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=41455 Jakub Jelinek changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned

[Bug middle-end/41455] memcpy not tail called if it's a struct assignment

2017-11-10 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=41455 --- Comment #5 from Richard Biener --- We could do that I suppose. Of course memcpy will expand to alias-set zero block copies while aggregate assignment can use better info. So in the end this means doing full block-copy expansion on GIMPLE

[Bug middle-end/41455] memcpy not tail called if it's a struct assignment

2017-11-10 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=41455 --- Comment #4 from Andrew Pinski --- I suspect what we can do is "lower" assignments to memcpy in a pass right before tail call to optimize this case.