https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118076
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- I think the easiest way of fixing this is exposing the stack location for the arguments before expand and do some simple optimizations after that.