Comment Comment by wyager Modern compilers and branch predictors means this doesn't matter 99.9% of the time.If you take the same branch every time 100 times in a row, the processor will optimize the cost of the branch away almost entirely.If the branch condition is not volatile, compilers will usually lift it. parent wyager 3 years ago
If you take the same branch every time 100 times in a row, the processor will optimize the cost of the branch away almost entirely.
If the branch condition is not volatile, compilers will usually lift it.