This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: fix 21529
- From: Daniel Berlin <dberlin at dberlin dot org>
- To: Richard Henderson <rth at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Thu, 04 Aug 2005 22:29:57 -0400
- Subject: Re: fix 21529
- References: <20050805024745.GA29576@redhat.com>
On Thu, 2005-08-04 at 19:47 -0700, Richard Henderson wrote:
> I'm pretty sure there's more than one PR about SRA deciding
> to instantiate all of the members of a structure, and there
> being *way* too many of them for that to be worthwhile.
If you really wanted to do slightly better, you could probably reuse the
"used_portions" information that the structure variable creation stuff
uses, in order to give the instantiation heuristics a fighting chance on
large structures :)
After all, we shouldn't be adding random uses of structure fields that
weren't there before, so the information should still be
valid/conservatively correct if you just kept it from there.