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

--- Comment #13 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 43919
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43919&action=edit
gcc8-pr85230.patch

So, if you want to add STACK_DYNAMIC_OFFSET to new_sp for the second argument,
then we could do either what this patch does (i.e. pass new_sp +
(virtual_stack_dynamic_rtx - stack_pointer_rtx) as second argument) and rely on
cse/forwprop/combine to optimize it into new_sp (if STACK_DYNAMIC_OFFSET is 0)
or to just addition of some constant, or introduce a new virtual pseudo
register that vregs pass would map directly to dynamic_offset.

Reply via email to