Re:Intel's Redwood Cove: Baby Steps Are Still Steps
by vlovich123 on Monday September 23, 2024 @11:59AM
(#41627489)
It can also change the instruction selection. For example, __builtin_unpredictable which is a close cousin of expect will indicate there's no prediction possible on a branch. This causes the compiler to select branchless instructions & is particularly useful in things like binary search where the CPU attempting to do prediction is worse than using a branchless version of the code.
[ Parent
| on HN ]
There are no comments on this comment yet.