Re: [PATCH] tree-object-size: Make unknown a computation

2021-10-19 Thread Siddhesh Poyarekar
On 10/19/21 12:28, Jakub Jelinek wrote: On Tue, Oct 19, 2021 at 09:47:45AM +0530, Siddhesh Poyarekar wrote: Compute the unknown size value as a function of the min/max bit of object_size_type. This transforms into a neat little branchless sequence on x86_64: movl%edi, %eax

Re: [PATCH] tree-object-size: Make unknown a computation

2021-10-18 Thread Jakub Jelinek via Gcc-patches
On Tue, Oct 19, 2021 at 09:47:45AM +0530, Siddhesh Poyarekar wrote: > Compute the unknown size value as a function of the min/max bit of > object_size_type. This transforms into a neat little branchless > sequence on x86_64: > > movl%edi, %eax > sarl%eax > xorl$1, %e

[PATCH] tree-object-size: Make unknown a computation

2021-10-18 Thread Siddhesh Poyarekar
Compute the unknown size value as a function of the min/max bit of object_size_type. This transforms into a neat little branchless sequence on x86_64: movl%edi, %eax sarl%eax xorl$1, %eax negl%eax cltq which should be faster than loading th