Re: [PATCH 0/3] eldie generated code for folded p4d/pud
From: Peter Zijlstra
Date: Thu Oct 10 2019 - 03:38:58 EST
On Wed, Oct 09, 2019 at 03:26:55PM -0700, Vineet Gupta wrote:
> Hi,
>
> This series elides extraneous generate code for folded p4d/pud.
> This came up when trying to remove __ARCH_USE_5LEVEL_HACK from ARC port.
> The code saving are not a while lot, but still worthwhile IMHO.
>
> bloat-o-meter2 vmlinux-A-baseline vmlinux-E-elide-p?d_clear_bad
> add/remove: 0/2 grow/shrink: 0/1 up/down: 0/-146 (-146)
> function old new delta
> p4d_clear_bad 2 - -2
> pud_clear_bad 20 - -20
> free_pgd_range 546 422 -124
> Total: Before=4137148, After=4137002, chg -1.000000%
>
Works for me, thanks!