This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Speedup CSE by 5%


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]