3 ms·
These are usually for the compiler rather than the CPU e.g. I don't want my error-handling code inlined! (But the compiler can't work this out without a hint)
by mhh__ 2y ago
These are usually for the compiler rather than the CPU e.g. I don't want my error-handling code inlined! (But the compiler can't work this out without a hint)
- astrange 2y agoYes, there actually isn't a way to explicitly hint branch predictors on modern CPUs.