Re: [PATCH] PR119482: Avoid mispredictions in bitmap_set_bit

2025-04-01 Thread Richard Biener
> Am 02.04.2025 um 00:02 schrieb Andi Kleen : > > From: Andi Kleen > > This isn't a regression, but it's a very simple patch with high > performance improvement, so perhaps suitable in the current stage. Ok. Can you add a comment as to why we store unconditionally? Richard > --- > > bi

[PATCH] PR119482: Avoid mispredictions in bitmap_set_bit

2025-04-01 Thread Andi Kleen
From: Andi Kleen This isn't a regression, but it's a very simple patch with high performance improvement, so perhaps suitable in the current stage. --- bitmap_set_bit checks the original value of the bit to return it to the caller and then only writes the new value back if it changes. Most call