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: PATCH COMMITTED: Use conditional moves in groups of assignments


On 15 Jan 2006 10:56:14 -0800, Ian Lance Taylor <ian@airs.com> wrote:
> Richard Guenther <richard.guenther@gmail.com> writes:
>
> > > This avoids the conditional branch and will generally be more
> > > efficient.
> >
> > Actually the P4 is horribly slow with conditional moves.
>
> Would it be appropriate for i386.h to define MAX_CONDITIONAL_EXECUTE?

Probably.  But it should be decided taking into account branch
probabilities if possible.  I.e. a well-predicted jump will be as fast
as a cmov, only in the case of random execution the (multiple)
cmov will pay off always.

Richard.


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