Re: Compiler Loop Unswitching
- From: Walter Banks <walter@xxxxxxxxxxxxx>
- Date: Fri, 29 Feb 2008 07:59:26 -0500
Tim Frink wrote:
Hi,
I'd like to know your experiences with compiler loop optimizations.
What loop optimizations (in your opinion) can be applied to a large
number of programs and yield a (significant) improvement of the
program run-time?
I've tested the compiler optimization "loop unswitching" (also introduced
in gcc 3.4) but going through a large number of different benchmarks I
could find very few examples where the optimization could be applied. Do
you share my experience?
Loop unswitching is one of a class of optimizations that quite rare
in application code.
Based on our metrics the single most important loop optimization
on application code is moving the test to the bottom when the first
compare is known at compile time. It halves the pipe line flushes
and is almost trivial to implement.
Regards,
--
Walter Banks
Byte Craft Limited
Tel. (519) 888-6911
http://www.bytecraft.com
walter@xxxxxxxxxxxxx
.
- Follow-Ups:
- Re: Compiler Loop Unswitching
- From: Tim Frink
- Re: Compiler Loop Unswitching
- References:
- Compiler Loop Unswitching
- From: Tim Frink
- Compiler Loop Unswitching
- Prev by Date: Re: EXE at server
- Next by Date: Re: Requirement for a Programming Language for Games (Strategic games)
- Previous by thread: Compiler Loop Unswitching
- Next by thread: Re: Compiler Loop Unswitching
- Index(es):
Relevant Pages
|