This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Speedup CSE by 5%
- From: Richard Guenther <richard dot guenther at gmail dot com>
- To: Arend Bayer <arend dot bayer at web dot de>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Mon, 17 Jan 2005 10:02:18 +0100
- Subject: Re: Speedup CSE by 5%
- References: <Pine.LNX.4.58.0501162122150.28709@linux.site>
- Reply-to: Richard Guenther <richard dot guenther at gmail dot com>
On Sun, 16 Jan 2005 23:22:28 +0100 (CET), Arend Bayer
<arend.bayer@web.de> wrote:
>
> This patch integrates approx_reg_cost() and approx_reg_cost_1() into one
> function by not using for_each_rtx(): The overhead of the additional
> function calls and some additional branches of the for_each_rtx()
> construction turn out to be significant performance-wise. I don't think
> the resulting code is less clear.
Why is this not optimized by gcc itself? Does marking approx_reg_cost_1
inline help?
Richard.