Re: Code optimization <LEA Instruction>

Alan Cox (alan@lxorguk.ukuu.org.uk)
Fri, 28 Jan 2000 14:37:52 +0000 (GMT)


> The test shows that LEA should not be arbitrarily used for arithmetic on
> an index register. It clearly shows that addition is faster.

Arbitarily no, general case it should be.

> It was written to demonstrate this. It demonstrates this. Alan assumed

You wrote a demo for AGI generation stalls not for lea performance when
compiler scheduled. Most x86 chips have a single AGI generator so you
just stalled your cpu a lot.

Alan

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