The tricky part here is that compilers are pretty bad (without PGO at least) of knowing what side of the branch matters.