Re: Compiler Loop Unswitching
- From: Tim Frink <plfriko@xxxxxxxx>
- Date: Fri, 29 Feb 2008 16:21:34 +0100
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.
Could you explain what you mean with "first compare"? Maybe you could
provide a small code example?
Thank you.
Tim
.
- Follow-Ups:
- Re: Compiler Loop Unswitching
- From: lawrence . jones
- Re: Compiler Loop Unswitching
- From: Walter Banks
- Re: Compiler Loop Unswitching
- From: Bartc
- Re: Compiler Loop Unswitching
- References:
- Compiler Loop Unswitching
- From: Tim Frink
- Re: Compiler Loop Unswitching
- From: Walter Banks
- Compiler Loop Unswitching
- Prev by Date: Re: Becoming a Real-life Programmer
- Next by Date: Re: strlen(), K+1: clarification
- Previous by thread: Re: Compiler Loop Unswitching
- Next by thread: Re: Compiler Loop Unswitching
- Index(es):
Relevant Pages
|