This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] fold-const.c use of BRANCH_COST
- From: Geoff Keating <geoffk at geoffk dot org>
- To: David Edelsohn <dje at watson dot ibm dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: 11 Apr 2003 10:48:14 -0700
- Subject: Re: [PATCH] fold-const.c use of BRANCH_COST
- References: <rth@redhat.com> <200304111441.KAA26950@makai.watson.ibm.com>
David Edelsohn <dje at watson dot ibm dot com> writes:
> >>>>> Richard Henderson writes:
>
> Richard> Nothing, except that it'd be better to go at them in a more
> Richard> organized sort of way than a basketful of random defines.
>
> We can add the knobs for both uses of BRANCH_COST in fold-const.c
> in this pass, if you want. BRANCH_COST isn't actually used in that many
> parts of GCC.
It'd be better if we could assign a meaning to each macro, like
"this is the relative cost of a branch compared to an integer
instruction" rather than "this is the knob you tweak to affect this
code path which may or may not affect this optimisation".
--
- Geoffrey Keating <geoffk at geoffk dot org>