Re:Fast integer overflow detection (2012)
by TheLoneWolfling on Sunday December 14, 2014 @07:06PM
(#8750059)
You require one branch regardless, and the trivial version is one branch, i.e. already at the minimum amount of branches.
I'm no expert, especially not on modern x86 processors or compilers for them, but I suspect it isn't so trivial as scattering such instructions may affects branch predictor tables and indirectly degrade performance in other parts of code.