likely/unlikely (__builtin_expect)
The programmer telling the compiler which way a branch usually goes — a guess that is often worse than the programmer believes.
GCC's builtin __builtin_expect(x, 0) returns x unchanged but carries a claim about its expected value. The Linux kernel wrapped it in the likely() and unlikely() macros, and C++20 standardised the idea as the [[likely]] and [[unlikely]] attributes. GCC 9 added __builtin_expect_with_probability for anyone who wants to name a percentage.
A common misconception is that the hint steers the CPU's branch predictor. The Pentium 4 did have prefixes for that, but modern x86 cores ignore them. What changes is code layout: the expected path falls straight through and the unusual one is moved out of the way, often into a cold section. Profile-guided optimization overrides it when available, which is just as well — measurements on the Linux kernel have turned up plenty of likely() calls that are almost never true.