> On Thu, 2024-02-08 at 13:55 +0100, Jose E. Marchesi wrote: > [...] > >> However, it would be good if some clang wizard could confirm what >> impact, if any, #pragma unroll (aka #pragma clang loop unroll(enabled)) >> has over -O2, before ditching these pragmas from the selftests. > > I compiled sefltests both with and without this patch, > there are no differences in disassembly of generated BPF object files. > (using current clang main). > > [...] Hmm, wouldn't that mean that the loops in profiler.inc.h never get unrolled regardless of optimization level or pragma? (profiler2.c)