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
> >>>>> 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.
I would like to see this happen. Definitly i386 CPUs are other where
BRANCH_COST choice doesn't match. It would be nice to have separate
knobs for when optimizing for size or speed (decided using
maybe_hot_bb_p inside ifcvt.c)
Honza
>
> David