Lesson 2: Balancing Resources With Dual-Data Paths
2-17
Compiler Optimization Tutorial
Count, is displayed in the feedback. This represents the maximum signed inte-
ger value divided by two, or 3FFFFFFFh.
Therefore, by passing information without modifying the loop code, compiler
performance improves from a 10–cycle loop to 2 cycles and now to 1.5 cycles.
Q Is this the lower limit?
A Check out Lesson 3 to find out!
Table 2–2. Status Update: Tutorial example lesson_c lesson1_c lesson2_c
Tutorial Example
Lesson_c
Lesson1_c
Lesson2_c
Potential pointer aliasing info (discussed in Lesson 1)
p
p
Loop count info – minimum trip count (discussed in Lesson 2)
p
Loop count info – max trip count factor (discussed in Lesson 2)
p
Alignment info – xptr & yptr aligned on a word boundry (dis-
cussed in Lesson 3)
Cycles per iteration (discussed in Lesson 1–3)
10
2
1.5