Re: [PATCH] powerpc/bitops: Force inlining of fls()

2022-03-12 Thread Michael Ellerman
On Fri, 11 Feb 2022 09:51:32 +0100, Christophe Leroy wrote: > Building a kernel with CONFIG_CC_OPTIMISE_FOR_SIZE leads to > the following functions being copied several times in vmlinux: > > 31 times __ilog2_u32() > 34 times fls() > > Disassembly follows: > > [...] Applied to powerp

[PATCH] powerpc/bitops: Force inlining of fls()

2022-02-11 Thread Christophe Leroy
Building a kernel with CONFIG_CC_OPTIMISE_FOR_SIZE leads to the following functions being copied several times in vmlinux: 31 times __ilog2_u32() 34 times fls() Disassembly follows: c00f476c : c00f476c: 7c 63 00 34 cntlzw r3,r3 c00f4770: 2