Re: [PATCH] x86/fred: Optimize the FRED entry by prioritizing high-probability event dispatching
From: H. Peter Anvin
Date: Fri Jan 17 2025 - 11:25:26 EST
In short, seems that __builtin_expect not work with switch(), at least for
gcc version 8.5.0 20210514(RHEL).
For forward-facing optimizations, please don't use an ancient version of
gcc as the benchmark.
-hpa