Re: [PATCH] x86: make use of inc/dec conditional

From: Jan Beulich
Date: Wed Aug 19 2009 - 05:23:52 EST


>>> Thomas Gleixner <tglx@xxxxxxxxxxxxx> 19.08.09 11:06 >>>
>You still do not tell on which machines the INC/DEC instructions
>should be avoided and why. GCC avoiding it is not a convincing
>argument.

On Pentium4 (Prescott/Nocona) inc/dec not modifying the carry flag cause
an extra instruction dependency on EFLAGS, and hence extra latency in
when the instruction can be scheduled for execution.

Jan

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/