[Bug rtl-optimization/100377] needless stack adjustment when passing struct in register

2021-05-03 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100377

Richard Biener  changed:

   What|Removed |Added

   Keywords||missed-optimization

--- Comment #4 from Richard Biener  ---
I think there are indeed plenty of dups.

[Bug rtl-optimization/100377] needless stack adjustment when passing struct in register

2021-05-02 Thread luc.vanoostenryck at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100377

--- Comment #3 from Luc Van Oostenryck  ---
> I thought there was one which I filed which is much older than those but I
> can't find it.

Probably also related to PR36409 and PR49157

[Bug rtl-optimization/100377] needless stack adjustment when passing struct in register

2021-05-01 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100377

--- Comment #2 from Andrew Pinski  ---
OTOH, things seems OK on ppc64:
and x86_64:

Because both of those have redzones in their stack ABI.

[Bug rtl-optimization/100377] needless stack adjustment when passing struct in register

2021-05-01 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100377

Andrew Pinski  changed:

   What|Removed |Added

 Depends on||94173, 90216
   Severity|normal  |enhancement

--- Comment #1 from Andrew Pinski  ---
(In reply to Luc Van Oostenryck from comment #0)
> 
> Note: similar PRs exist but reported for x86_64 only

Not true.  PR 94173, PR 90216.

I thought there was one which I filed which is much older than those but I
can't find it.


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90216
[Bug 90216] Stack Pointer decrementing even when not loading extra data to
stack.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94173
[Bug 94173] [RISCV] Superfluous stackpointer manipulation