4 ms·
I believe intel used to always predict forward branches not taken and backward branches always taken if it didn’t have any history. Regardless, you can at leas
by vgatherps 4y ago
I believe intel used to always predict forward branches not taken and backward branches always taken if it didn’t have any history.
Regardless, you can at least lay out code in a way that heavily favors one branch over the other, and potentially optimize for one branch (I.e. give one branch very expensive prelude/exit to make another branch very cheap). The last thing I’ve seen compilers greatly struggle with though…