MIPS: Optimize pgd_init and pmd_init
authorDavid Daney <ddaney@caviumnetworks.com>
Thu, 16 Aug 2012 18:15:22 +0000 (11:15 -0700)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 11 Oct 2012 09:04:35 +0000 (11:04 +0200)
On a dual issue processor GCC generates code that saves a couple of
clock cycles per loop if we rearrange things slightly.  Checking for
p != end saves a SLTU per loop, moving the increment to the middle can
let it dual issue on multi-issue processors.

Signed-off-by: David Daney <ddaney@caviumnetworks.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/4249/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

No differences found