This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: how to fix anti-optimization?
- To: David Edelsohn <dje at watson dot ibm dot com>
- Subject: Re: how to fix anti-optimization?
- From: Dale Johannesen <dalej at apple dot com>
- Date: Thu, 13 Sep 2001 11:03:33 -0700
- Cc: gcc at gcc dot gnu dot org
On Thursday, September 13, 2001, at 10:50 AM, David Edelsohn wrote:
> Is GCC's "cost" model involved anywhere in the path? For PowerPC,
> the cost of CONST_INT and CONST_DOUBLE are zero while FP memory costs are
> bumped up.
No, it isn't. I looked at this; the substitution is done on trees, so
this is too early, isn't it? CONST_COSTS (etc.) works on rtl.
I appreciate the suggestions, and will be trying Richard Henderson's later
today.