This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: How do you get the benefit of -fstrict-aliasing?
- From: "Andrew Pinski" <pinskia at gmail dot com>
- To: "Bradley Lucier" <lucier at math dot purdue dot edu>
- Cc: "gcc mailing list" <gcc at gcc dot gnu dot org>, "Marc Feeley" <feeley at iro dot umontreal dot ca>
- Date: Sat, 21 Apr 2007 15:04:57 -0700
- Subject: Re: How do you get the benefit of -fstrict-aliasing?
- References: <DE53BA17-8720-4015-8F87-B5D201323D86@math.purdue.edu>
On 4/21/07, Bradley Lucier <lucier@math.purdue.edu> wrote:
I didn't think that adding aliasing information could lead to worse
code. So I'm wondering how to use that aliasing information more
effectively to get better code.
What aliasing information could do is allow an optimization pass cause
register pressure which causes our current RA (register allocator) to
go crazy and make code worse. This is true of any optimization even
one that takes into account register pressure (which actually the
wrong thing to do really).
Thanks,
Andrew Pinski