https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89567
--- Comment #8 from Andrew Pinski ---
For the non-static case, IPA-SRA has:
```
Summary for node int foo2(two_ints)/0:
Returns value
Descriptor for parameter 0:
param_size_limit: 8, size_reached: 4
* Access to unit offset: 0, unit siz
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89567
--- Comment #7 from Eyal Rozenberg ---
(In reply to Andrew Pinski from comment #6)
> I am think this can be closed as fixed ...
Well, my example no longer generates two loads. However
> IPA-SRA does handle this if the function is static.
>
>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89567
Andrew Pinski changed:
What|Removed |Added
Severity|normal |enhancement
--- Comment #6 from Andrew P
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89567
--- Comment #5 from Martin Jambor ---
(In reply to Eyal Rozenberg from comment #4)
> > In the first excample, the interproceudral constant propagation pass
> > (IPA-CP) found that foo1 is so small that copying all of it might be
> > worth not pas
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89567
--- Comment #4 from Eyal Rozenberg ---
> In the first excample, the interproceudral constant propagation pass
> (IPA-CP) found that foo1 is so small that copying all of it might be
> worth not passing the unused argument and so it does, that is
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89567
Martin Jambor changed:
What|Removed |Added
CC||jamborm at gcc dot gnu.org
--- Comment #
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89567
--- Comment #2 from Eyal Rozenberg ---
(In reply to Richard Biener from comment #1)
> You are looking for IPA DSE
I'm not a compiler expert and don't know what this means. Even literally, I
don't know what these acronyms stand for.
> by marsha
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89567
Richard Biener changed:
What|Removed |Added
Status|UNCONFIRMED |NEW
Last reconfirmed|