Loop Unrolling
6-100
6.9.7
Comparing Performance
Table 6–21 compares the performance of all versions of the if-then-else code
examples.
Table 6–21. Comparison of If-Then-Else Code Examples
Code Example
Cycles
Cycle Count
Example 6–50
If-then-else assembly code
(2
32) + 6
70
Example 6–51
If-then-else assembly code with loop count greater than 3
(2
32) + 4
68
Example 6–55
Unrolled if-then-else assembly code
(3
16) + 5
53