
Software Optimization Guide for AMD64 Processors | 25112 Rev. 3.06 September 2005 |
6.1Density of Branches
Optimization
When possible, align branches such that they do not cross a
Application
This optimization applies to:
•
•
Rationale
The AMD Athlon™ 64 and AMD Opteron™ processors have the capability to cache branch- prediction history for a maximum of three near branches (CALL, JMP, conditional branches, or returns) per
The following branches are limited to three per
jcc rel8 jcc rel32 jmp rel8 jmp rel32 jmp reg
jmp WORD PTR jmp DWORD PTR call rel16 call r/m16 call rel32 call r/m32
Coding more than three branches in the same
126 | Branch Optimizations | Chapter 6 |