Redundant Load Elimination
6-113
Optimizing Assembly Code via Linear Assembly
6.11.3 Drawing a Dependency Graph
Figure 6–21 shows the dependency graph of the FIR filter with redundant load
elimination.
Figure 6–21. Dependency Graph of FIR Filter (With Redundant Load Elimination)
.L2
.L2X
A side
B side
ADD
ADD
1
1
B
1
1
SUB
1
1
2
ADD
ADD
2
5
5
5
LDH
LDH
5
MPY
5
LDH
5
2
2
MPY
MPY
5
5
LDH
cntr
loop
sum0
sum0
h0
p10
p00
x0
x1
h1
p01
sum1
sum1
p11
.D1
.D1
.D2
.D2
.M2
.M2X
.M1
.M1X
.L1
.L1X
.S2
.S2
MPY