x86_64: Optimize ffsll function code size.
Ffsll function randomly regress by ~20%, depending on how code gets
aligned in memory. Ffsll function code size is 17 bytes. Since default
function alignment is 16 bytes, it can load on 16, 32, 48 or 64 bytes
aligned memory. When ffsll function load at 16, 32 or 64 bytes aligned
memory, entire code fits in single 64 bytes cache line. When ffsll
function load at 48 bytes aligned memory, it splits in two cache line,
hence random regression.
Ffsll function size reduction from 17 bytes to 12 bytes ensures that it
will always fit in single 64 bytes cache line.
This patch fixes ffsll function random performance regression.
Reviewed-by:
Carlos O'Donell <carlos@redhat.com>
Loading
-
mentioned in commit c54d0875
-
mentioned in commit 5bbe7e0d
-
mentioned in commit 30e546d7
-
mentioned in commit bd1ded3d
-
mentioned in commit 3b8d158b
-
mentioned in commit a08677d3
-
mentioned in commit 1a3326df
-
mentioned in commit 47f69077
-
mentioned in commit d04b6377
-
mentioned in commit 5a7440f5
-
mentioned in commit 61f2272b
Please register or sign in to comment