Re: [tip:x86/asm] x86: Prefer TZCNT over BFS

From: Jan Beulich
Date: Tue Sep 18 2012 - 02:40:46 EST


>>> On 17.09.12 at 19:05, "H. Peter Anvin" <hpa@xxxxxxxxx> wrote:
> Honestly, I don't see a reason to not do this unconditionally. On
> anything but (pre-686-era) extremely old CPUs the cost of the extra
> prefix is zero. On the really old CPUs the cost of the BSF instruction
> will dwarf the penalty cycle for the extra prefix, so the whole
> mechanism around doing it conditionally seems pointless.

I certainly don't mind re-submitting with the whole thing made
unconditional (implying that the prior version would be dropped
in any case).

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/