]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: Select ARCH_HAS_FAST_MULTIPLIER
authorRobin Murphy <robin.murphy@arm.com>
Tue, 24 Apr 2018 15:25:47 +0000 (16:25 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Wed, 16 May 2018 10:50:52 +0000 (11:50 +0100)
commit7dbf4e2f9e061c0cef9ed06619e43843fb0cf3a4
treedce158ed5840192161def2c998dd80f77307bb85
parentfc465b605138ea1ddc082cf700c461d2e57bd9ea
arm64: Select ARCH_HAS_FAST_MULTIPLIER

It is probably safe to assume that all Armv8-A implementations have a
multiplier whose efficiency is comparable or better than a sequence of
three or so register-dependent arithmetic instructions. Select
ARCH_HAS_FAST_MULTIPLIER to get ever-so-slightly nicer codegen in the
few dusty old corners which care.

In a contrived benchmark calling hweight64() in a loop, this does indeed
turn out to be a small win overall, with no measurable impact on
Cortex-A57 but about 5% performance improvement on Cortex-A53.

Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/Kconfig