Re: [PATCH] arm: Use builtins for ffs/fls

2023-08-24 Thread Tony Dinh
Hi Sean, On Mon, Jul 31, 2023 at 2:28 PM Sean Anderson wrote: > > Since ARMv5, the clz instruction allows for efficient implementation of > ffs/fls with builtins. Until ARMv7 (with Thumb-2), this instruction is > only available in ARM mode. LTO makes it difficult to force specific > functions to

Re: [PATCH] arm: Use builtins for ffs/fls

2023-08-18 Thread Tom Rini
On Mon, Jul 31, 2023 at 05:27:33PM -0400, Sean Anderson wrote: > Since ARMv5, the clz instruction allows for efficient implementation of > ffs/fls with builtins. Until ARMv7 (with Thumb-2), this instruction is > only available in ARM mode. LTO makes it difficult to force specific > functions to be

Re: [PATCH] arm: Use builtins for ffs/fls

2023-08-10 Thread Tom Rini
On Mon, Jul 31, 2023 at 05:27:33PM -0400, Sean Anderson wrote: > Since ARMv5, the clz instruction allows for efficient implementation of > ffs/fls with builtins. Until ARMv7 (with Thumb-2), this instruction is > only available in ARM mode. LTO makes it difficult to force specific > functions to be

Re: [PATCH] arm: Use builtins for ffs/fls

2023-07-31 Thread Sean Anderson
On 7/31/23 17:27, Sean Anderson wrote: Since ARMv5, the clz instruction allows for efficient implementation of ffs/fls with builtins. Until ARMv7 (with Thumb-2), this instruction is only available in ARM mode. LTO makes it difficult to force specific functions to be in ARM mode, as it is effectiv

Re: [PATCH] arm: Use builtins for ffs/fls

2023-07-31 Thread Sean Anderson
On 7/31/23 17:36, Tom Rini wrote: On Mon, Jul 31, 2023 at 05:27:33PM -0400, Sean Anderson wrote: Since ARMv5, the clz instruction allows for efficient implementation of ffs/fls with builtins. Until ARMv7 (with Thumb-2), this instruction is only available in ARM mode. LTO makes it difficult t

Re: [PATCH] arm: Use builtins for ffs/fls

2023-07-31 Thread Tom Rini
On Mon, Jul 31, 2023 at 05:27:33PM -0400, Sean Anderson wrote: > Since ARMv5, the clz instruction allows for efficient implementation of > ffs/fls with builtins. Until ARMv7 (with Thumb-2), this instruction is > only available in ARM mode. LTO makes it difficult to force specific > functions to be

[PATCH] arm: Use builtins for ffs/fls

2023-07-31 Thread Sean Anderson
Since ARMv5, the clz instruction allows for efficient implementation of ffs/fls with builtins. Until ARMv7 (with Thumb-2), this instruction is only available in ARM mode. LTO makes it difficult to force specific functions to be in ARM mode, as it is effectively a form of very aggressive inlining. T