On 02/09/2026 21:57, Nathan Bossart wrote:
Dunno if these are particularly worth optimizing, but regardless of performance, I think the loop code looks better with these changes anyway.After adding -ftree-vectorize and moving the loop boundary computations to outside the loops, popular compilers will auto-vectorize bit_and(), bit_or(), bitxor(), and bitnot(). My testing indicates this produces some nice speedups, but I haven't yet done anything scientific enough to share.
- Heikki
